Skip to content

Commit a294ec4

Browse files
committed
.
1 parent 683e95e commit a294ec4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/browser/test/integrations/webWorker.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,19 @@ describe('registerWebWorker and webWorkerIntegration', () => {
248248

249249
it('works together', () => {
250250
(helpers.WINDOW as any)._sentryDebugIds = {
251-
'main-file1.js': 'main-debug-1',
252-
'main-file2.js': 'main-debug-2',
253-
'shared-file.js': 'main-debug-id',
251+
'Error at \n /main-file1.js': 'main-debug-1',
252+
'Error at \n /main-file2.js': 'main-debug-2',
253+
'Error at \n /shared-file.js': 'main-debug-id',
254254
};
255255

256256
let cb: ((arg0: any) => any) | undefined = undefined;
257257

258258
// Setup mock worker
259259
const mockWorker = {
260260
_sentryDebugIds: {
261-
'worker-file1.js': 'worker-debug-1',
262-
'worker-file2.js': 'worker-debug-2',
263-
'shared-file.js': 'worker-debug-id',
261+
'Error at \n /worker-file1.js': 'worker-debug-1',
262+
'Error at \n /worker-file2.js': 'worker-debug-2',
263+
'Error at \n /shared-file.js': 'worker-debug-id',
264264
},
265265
addEventListener: vi.fn((_, l) => (cb = l)),
266266
postMessage: vi.fn(message => {
@@ -281,11 +281,11 @@ describe('registerWebWorker and webWorkerIntegration', () => {
281281
});
282282

283283
expect((helpers.WINDOW as any)._sentryDebugIds).toEqual({
284-
'main-file1.js': 'main-debug-1',
285-
'main-file2.js': 'main-debug-2',
286-
'shared-file.js': 'main-debug-id',
287-
'worker-file1.js': 'worker-debug-1',
288-
'worker-file2.js': 'worker-debug-2',
284+
'Error at \n /main-file1.js': 'main-debug-1',
285+
'Error at \n /main-file2.js': 'main-debug-2',
286+
'Error at \n /shared-file.js': 'main-debug-id',
287+
'Error at \n /worker-file1.js': 'worker-debug-1',
288+
'Error at \n /worker-file2.js': 'worker-debug-2',
289289
});
290290
});
291291
});

0 commit comments

Comments
 (0)