-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path__name__.gjs
More file actions
24 lines (18 loc) · 712 Bytes
/
__name__.gjs
File metadata and controls
24 lines (18 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { module, test } from 'qunit';
import { render } from '@ember/test-helpers';
import { setupRenderingTest } from 'ember-qunit';
import <%= componentName %> from '../../../src/components/<%= name %>';
module('Integration | Component | <%= name %>', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
await render(<template><%= selfCloseComponent(componentName) %></template>);
assert.dom().hasText('');
// Template block usage:
await render(<template>
<%= openComponent(componentName) %>
template block text
<%= closeComponent(componentName) %>
</template>);
assert.dom().hasText('template block text');
});
});