Skip to content

Commit 6077a9c

Browse files
committed
Remove the unit test type for strict components
1 parent 05b60f0 commit 6077a9c

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

blueprints/component-test/files/__root__/__testType__/__path__/__test__.gjs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if (testType === 'integration') { %>import { module, test } from 'qunit';
1+
import { module, test } from 'qunit';
22
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
33
import { render } from '@ember/test-helpers';
44
import <%= 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+
});

blueprints/component-test/files/__root__/__testType__/__path__/__test__.gts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if (testType === 'integration') { %>import { module, test } from 'qunit';
1+
import { module, test } from 'qunit';
22
import { setupRenderingTest } from '<%= modulePrefix %>/tests/helpers';
33
import { render } from '@ember/test-helpers';
44
import <%= 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+
});

0 commit comments

Comments
 (0)