Skip to content

Commit

Permalink
revert karma config + CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjacob committed Jul 10, 2020
1 parent c0cd975 commit af5f245
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion karma.conf.maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module.exports = function(codeCoverage, browserstack, watchMode, file) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
[file != null ? file : 'test/test_index.js']: ['webpack', 'sourcemap']
'test/test_index.js': ['webpack', 'sourcemap']
},

// web server port
Expand Down
20 changes: 10 additions & 10 deletions test/spec/modules/amxBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import * as utils from 'src/utils.js';
import { config } from 'src/config.js';
import { expect } from 'chai';
import { newBidder } from 'src/adapters/bidderFactory.js';
import { spec } from 'modules/amxBidAdapter.js';
import { BANNER, VIDEO } from 'src/mediaTypes';
import { formatQS } from 'src/utils';
import { BANNER, VIDEO } from 'src/mediaTypes.js';

const sampleRequestId = '82c91e127a9b93e';
const sampleDisplayAd = (additionalImpressions) => `<script src='https://assets.a-mo.net/tmode.v1.js'></script>${additionalImpressions}`;
Expand Down Expand Up @@ -190,17 +187,19 @@ describe('AmxBidAdapter', () => {
expect(method).to.equal('POST');
expect(Object.keys(data.m).length).to.equal(2);
expect(data.m[sampleRequestId]).to.deep.equal({
av: false,
av: true,
aw: 300,
ah: 250,
tf: 0
tf: 0,
vr: false
});
expect(data.m[sampleRequestId + '_2']).to.deep.equal({
av: false,
av: true,
aw: 300,
i: 'example',
ah: 250,
tf: 0
tf: 0,
vr: false,
});
});

Expand All @@ -211,7 +210,8 @@ describe('AmxBidAdapter', () => {
av: true,
aw: 360,
ah: 250,
tf: 0
tf: 0,
vr: true
});
});
});
Expand Down Expand Up @@ -330,7 +330,7 @@ describe('AmxBidAdapter', () => {
try {
const parsed = new URL(firedPixels[0]);
const nestedData = parsed.searchParams.get('c2');
expect(nestedData).to.equal(formatQS({
expect(nestedData).to.equal(utils.formatQS({
hb_pb: '1.23',
hb_adid: 'ad-id',
hb_bidder: 'example'
Expand Down

0 comments on commit af5f245

Please sign in to comment.