Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Drobiecki authored and jdrobiecki committed Oct 25, 2017
1 parent a085f6f commit d18ccfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/spec/modules/adoceanBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('AdoceanAdapter', () => {
});

describe('isBidRequestValid', () => {
let bid = {
const bid = {
'bidder': 'adocean',
'params': {
'masterId': 'tmYF.DMl7ZBq.Nqt2Bq4FutQTJfTpxCOmtNPZoQUDcL.G7',
Expand All @@ -31,7 +31,7 @@ describe('AdoceanAdapter', () => {
});

it('should return false when required params are not passed', () => {
let bid = Object.assign({}, bid);
const bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
'masterId': 0
Expand All @@ -41,7 +41,7 @@ describe('AdoceanAdapter', () => {
});

describe('buildRequests', () => {
let bidRequests = [
const bidRequests = [
{
'bidder': 'adocean',
'params': {
Expand All @@ -67,7 +67,7 @@ describe('AdoceanAdapter', () => {
it('sends bid request to url via GET', () => {
const request = spec.buildRequests(bidRequests)[0];
expect(request.method).to.equal('GET');
expect(request.url).to.match(new RegExp('^https://' + bidRequests[0].params.emiter + '/ad.json'));
expect(request.url).to.match(new RegExp(`^https://${bidRequests[0].params.emiter}/ad.json`));
});

it('should attach id to url', () => {
Expand Down

0 comments on commit d18ccfe

Please sign in to comment.