Skip to content

Commit

Permalink
Delete libs jest mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
arelra committed Dec 19, 2024
1 parent 404b7fe commit 85a738c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
4 changes: 0 additions & 4 deletions src/display/lazy-load.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jest.mock('display/request-bids', () => ({
requestBidsForAd: jest.fn(),
}));

jest.mock('config', () => ({
get: jest.fn(() => false),
}));

jest.mock('define/Advert', () => jest.fn(() => ({ advert: jest.fn() })));

jest.mock('lib/dfp/get-advert-by-id');
Expand Down
7 changes: 3 additions & 4 deletions src/init/consented/prepare-googletag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jest.mock('lib/identity/api', () => ({
getGoogleTagId: jest.fn().mockResolvedValue('test-id-string'),
getUrl: jest.fn(),
}));
jest.mock('lib/analytics/beacon', () => void {});

jest.mock('lib/detect/detect-breakpoint', () => ({
getCurrentBreakpoint: jest.fn(),
hasCrossedBreakpoint: jest.fn(),
}));

jest.mock('display/display-lazy-ads', () => ({
displayLazyAds: jest.fn(),
}));
Expand Down Expand Up @@ -109,15 +109,14 @@ jest.mock('@guardian/libs', () => {
},
};
});

jest.mock(
'lodash-es/once',
() =>
<T>(fn: (...args: unknown[]) => T) =>
fn,
);
jest.mock('lib/analytics/beacon', () => ({
fire: jest.fn(),
}));

jest.mock('display/load-advert', () => ({
loadAdvert: jest.fn(),
}));
Expand Down
17 changes: 0 additions & 17 deletions src/lib/__mocks__/config.js

This file was deleted.

0 comments on commit 85a738c

Please sign in to comment.