Skip to content

Commit 4e67af6

Browse files
committed
chore(): update test
1 parent 02a12e8 commit 4e67af6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

workers/javascript/tests/index.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ describe('JavaScript event worker', () => {
283283
await worker.finish();
284284
});
285285

286-
itIf('should use cache while processing source maps', async () => {
286+
it('should use cache while processing source maps', async () => {
287287
/**
288288
* Arrange
289289
*/
@@ -317,7 +317,7 @@ describe('JavaScript event worker', () => {
317317
await worker.finish();
318318
});
319319

320-
it('should memoize beautifyBacktrace within single handle (parallel processing may cause multiple calls)', async () => {
320+
it('should memoize beautifyBacktrace within several handle calls', async () => {
321321
// Arrange
322322
const worker = new JavascriptEventWorker();
323323

@@ -341,6 +341,8 @@ describe('JavaScript event worker', () => {
341341
},
342342
] as any;
343343

344+
const workerEventDuplicate = cloneDeep(workerEvent);
345+
344346
// Create a release with a single map file used by both frames
345347
const singleMapRelease = {
346348
...createReleaseMock({
@@ -367,6 +369,7 @@ describe('JavaScript event worker', () => {
367369

368370
// Act
369371
await worker.handle(workerEvent);
372+
await worker.handle(workerEventDuplicate);
370373

371374
// Assert: Since beautifyBacktrace is now memoized, the entire method should only be called once
372375
expect(getReleaseRecordSpy).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)