File tree Expand file tree Collapse file tree 2 files changed +4
-24
lines changed
blueprints/component-test/files/__root__/__testType__/__path__ Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 1
- < % if (testType === ' integration ' ) { % > import { module , test } from ' qunit' ;
1
+ import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
4
import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
@@ -25,14 +25,4 @@ module('<%= friendlyTestDescription %>', function (hooks) {
25
25
26
26
assert .dom ().hasText (' template block text' );
27
27
});
28
- });< % } else if (testType === ' unit' ) { % > import { module , test } from ' qunit' ;
29
- import { setupTest } from ' <%= modulePrefix %>/tests/helpers' ;
30
-
31
- module (' <%= friendlyTestDescription %>' , function (hooks ) {
32
- setupTest (hooks);
33
-
34
- test (' it exists' , function (assert ) {
35
- let component = this .owner .factoryFor (' component:<%= componentPathName %>' ).create ();
36
- assert .ok (component);
37
- });
38
- }); < % } % >
28
+ });
Original file line number Diff line number Diff line change 1
- < % if ( testType === ' integration ' ) { % > import { module , test } from ' qunit' ;
1
+ import { module , test } from ' qunit' ;
2
2
import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
3
3
import { render } from ' @ember/test-helpers' ;
4
4
import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
@@ -25,14 +25,4 @@ module('<%= friendlyTestDescription %>', function (hooks) {
25
25
26
26
assert .dom ().hasText (' template block text' );
27
27
});
28
- });< % } else if (testType === ' unit' ) { % > import { module , test } from ' qunit' ;
29
- import { setupTest } from ' <%= modulePrefix %>/tests/helpers' ;
30
-
31
- module (' <%= friendlyTestDescription %>' , function (hooks ) {
32
- setupTest (hooks );
33
-
34
- test (' it exists' , function (assert ) {
35
- let component = this .owner .factoryFor (' component:<%= componentPathName %>' ).create ();
36
- assert .ok (component );
37
- });
38
- }); < % } % >
28
+ });
You can’t perform that action at this time.
0 commit comments