forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliasBidder_spec.js
37 lines (32 loc) · 934 Bytes
/
aliasBidder_spec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { pbjsTestOnly } from 'test/helpers/pbjs-test-only';
describe('Publisher API _ Alias Bidder', function () {
var assert = require('chai').assert;
var expect = require('chai').expect;
var should = require('chai').should();
var prebid = require('../../src/prebid');
before(function () {
var topSlotCode = '/19968336/header-bid-tag1';
var topSlotSizes = [[728, 90], [970, 90]];
var adUnit = {
code: topSlotCode,
sizes: topSlotSizes,
bids: [
{
bidder: 'appnexus',
params: {
placementId: '5215561'
}
}
]
};
$$PREBID_GLOBAL$$.addAdUnits(adUnit);
});
after(function () {
pbjsTestOnly.clearAllAdUnits();
});
describe('set Alias Bidder', function () {
it('should have both of target bidder and alias bidder', function () {
$$PREBID_GLOBAL$$.aliasBidder('appnexus', 'bRealTime1');
});
});
});