Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 1, 2021
1 parent 3cdf8dc commit a86987c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/core/integration-tests/test/resolver.js
Expand Up @@ -382,4 +382,20 @@ describe('resolver', function() {
let output = await run(b);
assert.strictEqual(output.default, 2);
});

it('should support very long dependency specifiers', async function() {
this.timeout(8000);

let inputDir = path.join(__dirname, 'input');

await outputFS.mkdirp(inputDir);
await outputFS.writeFile(
path.join(inputDir, 'index.html'),
`<img src="data:image/jpeg;base64,/9j/${'A'.repeat(200000)}">`,
);

await bundle(path.join(inputDir, 'index.html'), {
inputFS: overlayFS,
});
});
});

0 comments on commit a86987c

Please sign in to comment.