Skip to content

Commit

Permalink
adjusting test because eai will add used modules to the amd loader too
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Jul 13, 2023
1 parent 110c5df commit ddf09c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-scenarios/static-import-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function staticImportTest(project: Project) {
lib: {
'example1.js': 'export default function() { return "example1 worked" }',
'example2.js': 'export default function() { return "example2 worked" }',
'example3.js': 'export default function() { return "example3 worked" }',
},
templates: {
'application.hbs': `{{hello-world}}`,
Expand Down Expand Up @@ -152,9 +153,8 @@ function staticImportTest(project: Project) {
test("relative import", function (assert) {
assert.equal(example2(), 'example2 worked');
});
test("not visible in AMD loader", function(assert) {
assert.equal(require.has('@ef4/app-template/lib/example1'), false, 'should not have example1 in loader');
assert.equal(require.has('@ef4/app-template/lib/example2'), false, 'should not have example2 in loader');
test("unused module not visible in AMD loader", function(assert) {
assert.equal(require.has('@ef4/app-template/lib/example3'), false, 'should not have example3 in loader');
});
});
`,
Expand Down

0 comments on commit ddf09c9

Please sign in to comment.