Skip to content

Commit a135380

Browse files
committed
move fixtures to make more sense
1 parent 7551084 commit a135380

8 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/fixtures/default/my-addon/src/components/co-located.hbs renamed to tests/fixtures/legacy-components/co-located.hbs

File renamed without changes.
File renamed without changes.

tests/fixtures/default/my-addon/src/components/template-import.gjs renamed to tests/fixtures/legacy-components/template-import.gjs

File renamed without changes.

tests/fixtures/default/my-addon/src/components/template-only.hbs renamed to tests/fixtures/legacy-components/template-only.hbs

File renamed without changes.

tests/fixtures/default/my-addon/src/components/template-only.js renamed to tests/fixtures/legacy-components/template-only.js

File renamed without changes.

tests/fixtures/default/test-app/tests/rendering/co-located-test.js renamed to tests/fixtures/legacy-rendering-tests/co-located-test.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
4-
import { hbs } from 'ember-cli-htmlbars';
4+
import CoLocated from "addon-name/components/co-located";
55

66
module('Rendering | co-located', function(hooks) {
77
setupRenderingTest(hooks);
88

99
test('it renders', async function(assert) {
10-
await render(hbs`<CoLocated />`);
10+
await render(<template><CoLocated /></template>);
1111

1212
assert.dom().hasText('Hello, from a co-located component');
1313
})

tests/fixtures/default/test-app/tests/rendering/template-import-test.js renamed to tests/fixtures/legacy-rendering-tests/template-import-test.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
4-
import { hbs } from 'ember-cli-htmlbars';
4+
import TemplateImport from "addon-name/components/template-import";
55

66
module('Rendering | template-import', function(hooks) {
77
setupRenderingTest(hooks);
88

99
test('it renders', async function(assert) {
10-
await render(hbs`<TemplateImport />`);
10+
await render(<template><TemplateImport /></template>);
1111

1212
assert.dom().hasText('Hello from a GJS file but also Hello from a template-only component');
1313
})

tests/fixtures/default/test-app/tests/rendering/template-only-test.js renamed to tests/fixtures/legacy-rendering-tests/template-only-test.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { module, test } from 'qunit';
22
import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
4-
import { hbs } from 'ember-cli-htmlbars';
4+
import TemplateOnly from "addon-name/components/template-only";
55

66
module('Rendering | template-only', function(hooks) {
77
setupRenderingTest(hooks);
88

99
test('it renders', async function(assert) {
10-
await render(hbs`<TemplateOnly />`);
10+
await render(<template><TemplateOnly /></template>);
1111

1212
assert.dom().hasText('Hello from a template-only component');
1313
})

0 commit comments

Comments
 (0)