From c47703c3c89f7368e521e57ad1b6c1f5865c001d Mon Sep 17 00:00:00 2001 From: Greg Leonard <45019882+greg-el@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:48:25 +0000 Subject: [PATCH] Remove redundant tests --- .../test/unit/in_queue.test.ts | 21 ------------------- 1 file changed, 21 deletions(-) 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) {