Skip to content

Commit 22f9ecc

Browse files
authored
Apply suggestion from @wjhsf
1 parent b8c19fd commit 22f9ecc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@lwc/rollup-plugin/src/__tests__/importDedupe/importDedupe.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ it('merges duplicate imports', async () => {
4545
expect(warnings).toHaveLength(0);
4646
expect(imports).toHaveLength(1);
4747
const specifiers = imports[0][1];
48+
// `specifiers` should include `LightningElement` and `renderer` from basic.js
49+
// we don't do an exact string match because the compiler adds imports
4850
expect(specifiers).toContain('renderer');
4951
expect(specifiers).not.toContain('renderer as');
5052
});

0 commit comments

Comments
 (0)