File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments