fix sourcemap test

pull/12374/head
Rich Harris 2 years ago
parent f0cd509399
commit 18dabb7327

@ -30,10 +30,10 @@ export default test({
async test({ assert, code_client }) {
// Check that the css source map embedded in the js is accurate
const match = code_client.match(
/append_styles\(\$\$anchor, "svelte-.{6}", "(.*?)(?:\\n\/\*# sourceMappingURL=data:(.*?);charset=(.*?);base64,(.*?) \*\/)?"\);/
/code: "(.*?)(?:\\n\/\*# sourceMappingURL=data:(.*?);charset=(.*?);base64,(.*?) \*\/)?"/
);
assert.notEqual(match, null);
assert.ok(match);
const [css, mime_type, encoding, css_map_base64] = /** @type {RegExpMatchArray} */ (
match

Loading…
Cancel
Save