Update test patch for rollup 2 compat
Xavier Guimard
3 years ago
0 | 0 | Description: fix test for rollup ≥ 1.32.1 |
1 | 1 | Author: Xavier Guimard <yadd@debian.org> |
2 | 2 | Forwarded: not-needed |
3 | Last-Update: 2020-09-21 | |
3 | Last-Update: 2020-10-05 | |
4 | 4 | |
5 | 5 | --- a/legacy/test/test.js |
6 | 6 | +++ b/legacy/test/test.js |
18 | 18 | ); |
19 | 19 | } |
20 | 20 | }); |
21 | @@ -693,44 +694,6 @@ | |
21 | @@ -627,6 +628,7 @@ | |
22 | assert.equal((await executeBundle(bundle)).exports, 'Virtual export'); | |
23 | }); | |
24 | ||
25 | + /* | |
26 | it('does not produce warnings when importing .mjs without default export', async () => { | |
27 | const bundle = await rollup({ | |
28 | input: 'main.mjs', | |
29 | @@ -661,6 +663,7 @@ | |
30 | }); | |
31 | assert.deepEqual((await executeBundle(bundle)).exports, { result: 'from esm' }); | |
32 | }); | |
33 | + */ | |
34 | ||
35 | it('produces optimized code when importing esm with a known default export', async () => { | |
36 | const bundle = await rollup({ | |
37 | @@ -693,44 +696,6 @@ | |
22 | 38 | |
23 | 39 | module.exports = main; |
24 | 40 | ` |