Skip to content

Commit f0a9d94

Browse files
authored
add a realistic schain object in the unit test (#9077)
1 parent 9ea583a commit f0a9d94

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

test/spec/modules/seedtagBidAdapter_spec.js

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -361,28 +361,25 @@ describe('Seedtag Adapter', function () {
361361
it('should add schain to payload when exposed on validBidRequest', function () {
362362
// https://github.com/prebid/Prebid.js/blob/master/modules/schain.md#sample-code-for-passing-the-schain-object
363363
const schain = {
364-
validation: 'strict',
365-
config: {
366-
ver: '1.0',
367-
complete: 1,
368-
nodes: [
369-
{
370-
asi: 'indirectseller.com',
371-
sid: '00001',
372-
hp: 1,
373-
},
364+
ver: '1.0',
365+
complete: 1,
366+
nodes: [
367+
{
368+
asi: 'indirectseller.com',
369+
sid: '00001',
370+
hp: 1,
371+
},
374372

375-
{
376-
asi: 'indirectseller-2.com',
377-
sid: '00002',
378-
hp: 1,
379-
},
380-
],
381-
},
373+
{
374+
asi: 'indirectseller-2.com',
375+
sid: '00002',
376+
hp: 1,
377+
},
378+
],
382379
};
383380

384381
// duplicate
385-
const bidRequests = JSON.parse(JSON.stringify(validBidRequests))
382+
const bidRequests = JSON.parse(JSON.stringify(validBidRequests));
386383
bidRequests[0].schain = schain;
387384

388385
const request = spec.buildRequests(bidRequests, bidderRequest);

0 commit comments

Comments
 (0)