File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ moduleForComponent ,
3
+ test
4
+ } from 'ember-qunit' ;
5
+
6
+ moduleForComponent ( 'jqui-menu' , {
7
+ // specify the other units that are required for this test
8
+ // needs: ['component:foo', 'helper:bar']
9
+ } ) ;
10
+
11
+ test ( 'it renders' , function ( assert ) {
12
+ assert . expect ( 2 ) ;
13
+
14
+ // creates the component instance
15
+ var component = this . subject ( ) ;
16
+ assert . equal ( component . _state , 'preRender' ) ;
17
+
18
+ // renders the component to the page
19
+ this . render ( ) ;
20
+ assert . equal ( component . _state , 'inDOM' ) ;
21
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import {
2
+ moduleForComponent ,
3
+ test
4
+ } from 'ember-qunit' ;
5
+
6
+ moduleForComponent ( 'jqui-tabs' , {
7
+ // specify the other units that are required for this test
8
+ // needs: ['component:foo', 'helper:bar']
9
+ } ) ;
10
+
11
+ test ( 'it renders' , function ( assert ) {
12
+ assert . expect ( 2 ) ;
13
+
14
+ // creates the component instance
15
+ var component = this . subject ( ) ;
16
+ assert . equal ( component . _state , 'preRender' ) ;
17
+
18
+ // renders the component to the page
19
+ this . render ( ) ;
20
+ assert . equal ( component . _state , 'inDOM' ) ;
21
+ } ) ;
You can’t perform that action at this time.
0 commit comments