Skip to content

Commit

Permalink
update snapshots & remove irrelevant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Gill committed Oct 24, 2024
1 parent 9db409a commit e14e1e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 101 deletions.
9 changes: 2 additions & 7 deletions src/Advertising.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ describe('When I instantiate an advertising main module, with Prebid', () => {
expect(
global.pbjs.setTargetingForGPTAsync.mock.calls
).toMatchSnapshot()));
describe.only('the ad slot', () =>
describe('the ad slot', () =>
void it('is refreshed', () =>
expect(
global.googletag.pubads().refresh.mock.calls
Expand Down Expand Up @@ -566,12 +566,7 @@ describe('When I instantiate an advertising main module with plugins', () => {
describe("the plugin's hook for GPT teardown", () =>
void it('is not called', () =>
expect(plugins[0].teardownGpt).toHaveBeenCalledTimes(0)));
describe("the plugin's hook for displaying slots", () =>
void it('is called', () =>
expect(plugins[0].displaySlots).toHaveBeenCalled()));
describe("the plugin's hook for displaying outOfPage slots", () =>
void it('is called', () =>
expect(plugins[0].displayOutOfPageSlot).toHaveBeenCalled()));

describe("the plugin's hook for refreshing interstitial slot", () =>
void it('is called', () =>
expect(plugins[0].refreshInterstitialSlot).toHaveBeenCalled()));
Expand Down
98 changes: 4 additions & 94 deletions src/__snapshots__/Advertising.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,12 @@ Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"enableServices": [MockFunction] {
Expand Down Expand Up @@ -1040,26 +1033,7 @@ Object {
},
],
},
"display": [MockFunction] {
"calls": Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"display": [MockFunction],
"enableServices": [MockFunction] {
"calls": Array [
Array [],
Expand Down Expand Up @@ -1688,26 +1662,7 @@ Object {
},
],
},
"display": [MockFunction] {
"calls": Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"display": [MockFunction],
"enableServices": [MockFunction] {
"calls": Array [
Array [],
Expand Down Expand Up @@ -2546,19 +2501,12 @@ Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"enableServices": [MockFunction] {
Expand Down Expand Up @@ -3407,26 +3355,7 @@ Object {
},
],
},
"display": [MockFunction] {
"calls": Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"display": [MockFunction],
"enableServices": [MockFunction] {
"calls": Array [
Array [],
Expand Down Expand Up @@ -4055,26 +3984,7 @@ Object {
},
],
},
"display": [MockFunction] {
"calls": Array [
Array [
"div-gpt-ad-foo",
],
Array [
"div-gpt-ad-bar",
],
],
"results": Array [
Object {
"type": "return",
"value": undefined,
},
Object {
"type": "return",
"value": undefined,
},
],
},
"display": [MockFunction],
"enableServices": [MockFunction] {
"calls": Array [
Array [],
Expand Down

0 comments on commit e14e1e4

Please sign in to comment.