Skip to content

Commit

Permalink
fix(import-bundle): Handle harden bundles in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Feb 20, 2022
1 parent 4ae3f80 commit 4bcbcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/import-bundle/test/test-import-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ test('test missing sourceMap', async function testImport(t) {
new URL('bundle1.js', import.meta.url).pathname,
'nestedEvaluate',
);
delete b1.sourceMap;
const ns1 = await importBundle(b1, { endowments });
const { sourceMap: _, ...b1Lite } = b1;
const ns1 = await importBundle(b1Lite, { endowments });
t.is(ns1.f1(1), 2, `missing sourceMap ns.f1 ok`);
});

Expand Down

0 comments on commit 4bcbcb5

Please sign in to comment.