From 0550a16769f75e881e7c109178621e0ce2be9b73 Mon Sep 17 00:00:00 2001 From: Spicer Matthews Date: Mon, 18 Mar 2024 14:18:39 -0700 Subject: [PATCH] Stripped out all old ad code. --- package.json | 1 - src/__tests__/pages/index.test.js | 4 -- src/pages/_document.js | 41 --------------- src/utils/__tests__/adHelpers.test.js | 73 --------------------------- src/utils/adHelpers.js | 53 ------------------- yarn.lock | 7 --- 6 files changed, 179 deletions(-) diff --git a/package.json b/package.json index 8f771c53..b522d2e8 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "remark-parse": "^9.0.0", "remark-rehype": "^8.0.0", "swr": "^1.0.1", - "tab-ads": "^1.1.24", "tab-cmp": "^0.15.0-alpha.0", "unified": "^9.0.0", "uuid": "^8.3.2" diff --git a/src/__tests__/pages/index.test.js b/src/__tests__/pages/index.test.js index feb72f4e..d7349bae 100644 --- a/src/__tests__/pages/index.test.js +++ b/src/__tests__/pages/index.test.js @@ -67,10 +67,6 @@ jest.mock('src/components/Link') jest.mock('src/utils/navigation') jest.mock('src/utils/events') jest.mock('src/utils/ssr') -jest.mock('src/utils/adHelpers', () => ({ - getAdUnits: jest.fn().mockReturnValue({}), - incrementTabsOpenedToday: jest.fn(), -})) jest.mock('src/utils/localstorage-mgr', () => ({ getItem: jest.fn(), setItem: jest.fn(), diff --git a/src/pages/_document.js b/src/pages/_document.js index 176ce1f7..eff5d3cc 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -19,47 +19,6 @@ class CustomDocument extends Document { - {/** - * Begin: Ads code. - * See: https://github.com/gladly-team/tab-ads#html-tags - */} - {/* Google Publisher Tag */} -