Skip to content

Commit 992b031

Browse files
committed
chore: tweak snapshots
1 parent 15a9fda commit 992b031

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playground/js-sourcemap/__tests__/js-sourcemap.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe.runIf(isBuild)('build tests', () => {
140140
expect(formatSourcemapForSnapshot(JSON.parse(map))).toMatchInlineSnapshot(`
141141
{
142142
"ignoreList": [],
143-
"mappings": ";kpCAAA,OAAO,6BAAuB,wBAE9B,QAAQ,IAAI,wBAAuB",
143+
"mappings": ";ynCAEA,kBAFA,OAAO,6BAAuB,wBAE9B,QAAQ,IAAI,wBAAuB",
144144
"sources": [
145145
"../../after-preload-dynamic.js",
146146
],

playground/worker/__tests__/es/worker-es.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe.runIf(isBuild)('build', () => {
113113
expect(content).toMatch(`(self.URL||self.webkitURL).createObjectURL`)
114114
expect(content).toMatch(`self.Blob`)
115115
expect(content).toMatch(
116-
/try\{\w+=\w+&&\(self\.URL\|\|self\.webkitURL\)\.createObjectURL\(\w+\)[;\w()!]+throw\s*""/,
116+
/try\{if\(\w+=\w+&&\(self\.URL\|\|self\.webkitURL\)\.createObjectURL\(\w+\),!\w+\)throw""/,
117117
)
118118
// inlined shared worker
119119
expect(content).toMatch(

0 commit comments

Comments
 (0)