Skip to content

Commit

Permalink
Use colocated format for test component
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 9, 2024
1 parent 646ece0 commit f82d7b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test-scenarios/static-import-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ function staticImportTest(project: Project) {
}),
});
`,
'hello-world.hbs': `
<div class="hello-world">{{this.formattedDate}}</div>
<div class="lodash">{{#if this.lodashPresent}}yes{{else}}no{{/if}}</div>
<div class="aliased">{{this.aliasedResult}}</div>
<div class="scoped">{{this.fromScoped}}</div>
`,
},
lib: {
'example1.js': 'export default function() { return "example1 worked" }',
Expand Down Expand Up @@ -151,6 +157,7 @@ function staticImportTest(project: Project) {
templates: {
'application.hbs': `{{hello-world}}`,
components: {
// Our "lts" scenario runs a very old version of Ember that does not support colocated components, that's why we intentionally keep this here
'hello-world.hbs': `
<div class="hello-world">{{this.formattedDate}}</div>
<div class="lodash">{{#if this.lodashPresent}}yes{{else}}no{{/if}}</div>
Expand Down

0 comments on commit f82d7b7

Please sign in to comment.