diff --git a/packages/ses/test/import.test.js b/packages/ses/test/import.test.js index 32fb42a258..577b2177aa 100644 --- a/packages/ses/test/import.test.js +++ b/packages/ses/test/import.test.js @@ -45,7 +45,7 @@ test('module map primed with module record descriptor', async t => { t.is(index.default, 42); }); -test.failing('module map primed with module source descriptor', async t => { +test('module map primed with module source descriptor', async t => { const compartment = new Compartment( // endowments: {}, @@ -112,33 +112,30 @@ test('module map primed with virtual module record descriptor', async t => { t.is(index.default, 42); }); -test.failing( - 'module map primed with virtual module source descriptor', - async t => { - const compartment = new Compartment( - // endowments: - {}, - // modules: - { - './index.js': { - source: { - imports: [], - exports: ['default'], - execute(env) { - env.default = 42; - }, +test('module map primed with virtual module source descriptor', async t => { + const compartment = new Compartment( + // endowments: + {}, + // modules: + { + './index.js': { + source: { + imports: [], + exports: ['default'], + execute(env) { + env.default = 42; }, }, }, - // options: - { - resolveHook: specifier => specifier, - }, - ); - const { namespace: index } = await compartment.import('./index.js'); - t.is(index.default, 42); - }, -); + }, + // options: + { + resolveHook: specifier => specifier, + }, + ); + const { namespace: index } = await compartment.import('./index.js'); + t.is(index.default, 42); +}); test('module map hook returns module source', async t => { const compartment = new Compartment(