Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
added test for schain
Browse files Browse the repository at this point in the history
  • Loading branch information
e-legostaeva committed May 28, 2021
1 parent 3050052 commit 79cc68b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/spec/modules/qwarryBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ const REQUEST = {
'params': {
zoneToken: 'e64782a4-8e68-4c38-965b-80ccf115d46f',
pos: 7
},
'schain': {
ver: '1.0',
complete: 1,
nodes: [{
asi: 'qwarry.com',
sid: '00001',
hp: 1
}]
}
}

Expand Down Expand Up @@ -86,6 +95,7 @@ describe('qwarryBidAdapter', function () {
expect(bidderRequest.method).to.equal('POST')
expect(bidderRequest.data.requestId).to.equal('123')
expect(bidderRequest.data.referer).to.equal('http://test.com/path.html')
expect(bidderRequest.data.schain).to.deep.contains({ver: '1.0', complete: 1, nodes: [{asi: 'qwarry.com', sid: '00001', hp: 1}]})
expect(bidderRequest.data.bids).to.deep.contains({ bidId: '456', zoneToken: 'e64782a4-8e68-4c38-965b-80ccf115d46f', pos: 7, sizes: [{ width: 100, height: 200 }, { width: 300, height: 400 }] })
expect(bidderRequest.data.gdprConsent).to.deep.contains({ consentRequired: true, consentString: 'BOJ8RZsOJ8RZsABAB8AAAAAZ+A==' })
expect(bidderRequest.options.customHeaders).to.deep.equal({ 'Rtb-Direct': true })
Expand Down

0 comments on commit 79cc68b

Please sign in to comment.