Skip to content

Commit

Permalink
update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
t_bun committed Jun 2, 2021
1 parent 602d916 commit 9cb57cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/spec/modules/relaidoBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from 'chai';
import { spec } from 'modules/relaidoBidAdapter.js';
import * as utils from 'src/utils.js';
import { BANNER, VIDEO } from 'src/mediaTypes.js';
import { getStorageManager } from '../../../src/storageManager.js';

const UUID_KEY = 'relaido_uuid';
Expand Down Expand Up @@ -59,7 +60,8 @@ describe('RelaidoAdapter', function () {
uuid: relaido_uuid,
vast: '<VAST version="3.0"><Ad><InLine></InLine></Ad></VAST>',
playerUrl: 'https://relaido/player.js',
syncUrl: 'https://relaido/sync.html'
syncUrl: 'https://relaido/sync.html',
adomain: ['https://relaido.co.jp', 'https://www.cmertv.co.jp']
}
};
serverRequest = {
Expand Down Expand Up @@ -276,6 +278,8 @@ describe('RelaidoAdapter', function () {
expect(response.currency).to.equal(serverResponse.body.currency);
expect(response.creativeId).to.equal(serverResponse.body.creativeId);
expect(response.vastXml).to.equal(serverResponse.body.vast);
expect(response.meta.advertiserDomains).to.equal(serverResponse.body.adomain);
expect(response.meta.mediaType).to.equal(VIDEO);
expect(response.ad).to.be.undefined;
});

Expand Down

0 comments on commit 9cb57cd

Please sign in to comment.