From 734bbc5448d7dac58f8fc6459abe54fd729d6ffe Mon Sep 17 00:00:00 2001 From: Alexander Kachkaev Date: Thu, 27 Oct 2022 22:51:47 +0100 Subject: [PATCH] Cover more rows --- e2e/native-esm-wasm/__tests__/answer.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/native-esm-wasm/__tests__/answer.test.js b/e2e/native-esm-wasm/__tests__/answer.test.js index 5773887e3b5a..5d3771c7c8b5 100644 --- a/e2e/native-esm-wasm/__tests__/answer.test.js +++ b/e2e/native-esm-wasm/__tests__/answer.test.js @@ -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'); });