Skip to content

Commit c278090

Browse files
committed
Add some more tests
1 parent 3e39b6d commit c278090

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
});

0 commit comments

Comments
 (0)