diff --git a/trackers/javascript-tracker/test/unit/in_queue.test.ts b/trackers/javascript-tracker/test/unit/in_queue.test.ts index bd086bb17..34ef8ac5c 100644 --- a/trackers/javascript-tracker/test/unit/in_queue.test.ts +++ b/trackers/javascript-tracker/test/unit/in_queue.test.ts @@ -223,18 +223,6 @@ describe('Snowplow callback', () => { ]); }); - it('The callback will be passed the tracker dictionary as the final argument', () => { - asyncQueue.push([ - function (a: number, b: number, trackers: Record) { - expect(a).toEqual(1); - expect(b).toEqual(2); - expect(trackers.sp1).toEqual(mockTrackers.callback_sp1); - }, - 1, - 2, - ]); - }); - it('The callback will be passed the tracker dictionary as the argument if there is only one parameter', () => { asyncQueue.push([ function (trackers: Record) { @@ -244,15 +232,6 @@ describe('Snowplow callback', () => { ]); }); - it('The callback can access the tracker dictionary using both `this` and the first argument', () => { - asyncQueue.push([ - function (this: any, trackers: Record) { - expect(this.sp1).toEqual(mockTrackers.callback_sp1); - expect(trackers.sp1).toEqual(mockTrackers.callback_sp1); - }, - ]); - }); - it('The callback can access the tracker dictionary using both `this` and the last argument, along with arguments', () => { asyncQueue.push([ function (this: any, a: number, b: number, trackers: Record) {