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' ;
22import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
33import { render } from ' @ember/test-helpers' ;
44import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
@@ -25,14 +25,4 @@ module('<%= friendlyTestDescription %>', function (hooks) {
2525
2626 assert .dom ().hasText (' template block text' );
2727 });
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' ;
22import { setupRenderingTest } from ' <%= modulePrefix %>/tests/helpers' ;
33import { render } from ' @ember/test-helpers' ;
44import <%= componentName %> from ' <%= pkgName %>/components/<%= componentPathName %>' ;
@@ -25,14 +25,4 @@ module('<%= friendlyTestDescription %>', function (hooks) {
2525
2626 assert .dom ().hasText (' template block text' );
2727 });
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