Skip to content

Commit 84a66a8

Browse files
authored
InvibesBidAdapter: fix tests (prebid#14355)
1 parent f8a4c66 commit 84a66a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/spec/modules/invibesBidAdapter_spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,10 @@ describe('invibesBidAdapter:', function () {
444444
it('has capped ids if local storage variable is correctly formatted', function () {
445445
top.window.invibes.optIn = 1;
446446
top.window.invibes.purposes = [true, false, false, false, false, false, false, false, false, false];
447-
localStorage.ivvcap = '{"9731":[1,1768600800000]}';
447+
const now = new Date().getTime();
448+
localStorage.ivvcap = JSON.stringify({
449+
9731: [1, now + (24 * 60 * 60 * 1000)]
450+
})
448451
SetBidderAccess();
449452

450453
const request = spec.buildRequests(bidRequests, bidderRequestWithPageInfo);

0 commit comments

Comments
 (0)