Skip to content

Commit

Permalink
Remove redundant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Jan 23, 2025
1 parent fae132b commit c47703c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions trackers/javascript-tracker/test/unit/in_queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>) {
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<string, any>) {
Expand All @@ -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<string, any>) {
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<string, any>) {
Expand Down

0 comments on commit c47703c

Please sign in to comment.