Skip to content

Commit

Permalink
Cover more rows
Browse files Browse the repository at this point in the history
  • Loading branch information
kachkaev committed Oct 27, 2022
1 parent bc6d38c commit 734bbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/native-esm-wasm/__tests__/answer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ test('imports from "data:text/wasm" URI without explicit encoding fail', async (

test('imports from "data:text/wasm" URI with invalid encoding fail', async () => {
await expect(() =>
import(`data:application/wasm,hex,${wasmFileBuffer.toString('hex')}`),
).rejects.toThrow('Missing data URI encoding');
import('data:application/wasm;charset=utf-8,oops'),
).rejects.toThrow('Invalid data URI encoding: charset=utf-8');
});

0 comments on commit 734bbc5

Please sign in to comment.