Skip to content

Commit

Permalink
refactor "optional component missing in mustache" test
Browse files Browse the repository at this point in the history
  • Loading branch information
void-mAlex committed Jan 8, 2023
1 parent 5296ec1 commit 8d8f629
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/compat/tests/resolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ describe('compat-resolver', function () {
`);
});

test.skip('optional component missing in mustache', function () {
let findDependencies = configure({
test('optional component missing in mustache', function () {
let transform = configure({
staticComponents: true,
staticHelpers: true,
packageRules: [
Expand All @@ -520,7 +520,12 @@ describe('compat-resolver', function () {
},
],
});
expect(findDependencies('templates/application.hbs', `{{this-one x=true}}`)).toEqual([]);
expect(transform('templates/application.hbs', `{{this-one x=true}}`)).toEqualCode(`
import { precompileTemplate } from "@ember/template-compilation";
export default precompileTemplate("{{this-one x=true}}", {
moduleName: "my-app/templates/application.hbs"
});
`);
});

test.skip('component rules can be expressed via component helper', function () {
Expand Down

0 comments on commit 8d8f629

Please sign in to comment.