From ddf09c996d5422e24965b424ae696ba91dc0e42c Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Thu, 13 Jul 2023 07:35:24 -0400 Subject: [PATCH] adjusting test because eai will add used modules to the amd loader too --- test-scenarios/static-import-test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-scenarios/static-import-test.ts b/test-scenarios/static-import-test.ts index e8bbffd9..3275fe60 100644 --- a/test-scenarios/static-import-test.ts +++ b/test-scenarios/static-import-test.ts @@ -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}}`, @@ -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'); }); }); `,