Skip to content

Commit

Permalink
Fixup assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Aug 24, 2022
1 parent acd949f commit 3a7fdf9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
@@ -1,3 +1,3 @@
import {a} from "./library";
import {a, index} from "./library";

output = a;
output = [a, index];
Expand Up @@ -2,3 +2,4 @@ sideEffect("index");
export {a} from "./a.js";
export {b} from "./b.js";
export {c} from "./c.js";
export const index = "Index";
5 changes: 1 addition & 4 deletions packages/core/integration-tests/test/plugin.js
Expand Up @@ -123,10 +123,7 @@ parcel-transformer-b`,
},
);

assert.deepStrictEqual(
new Set(b.getUsedSymbols(nullthrows(findAsset(b, 'index.js')))),
new Set([]),
);
assert.deepStrictEqual(!findAsset(b, 'index.js'));
assert.deepStrictEqual(
new Set(b.getUsedSymbols(nullthrows(findAsset(b, 'a.js')))),
new Set(['a']),
Expand Down

0 comments on commit 3a7fdf9

Please sign in to comment.