Skip to content

Commit

Permalink
care lint & add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctylim committed Mar 11, 2020
1 parent 79cfe14 commit 9edf12b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/spec/modules/unicornBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert, expect } from 'chai';
import { spec } from 'modules/unicornBidAdapter';
import { spec } from 'modules/unicornBidAdapter.js';
import * as _ from 'lodash';

const bidRequests = [
Expand Down Expand Up @@ -451,5 +451,13 @@ describe('unicornBidAdapterTest', () => {
const bids = spec.interpretResponse(serverResponse, request);
assert.deepStrictEqual(bids, interpretedBids);
});
it('interpretResponseEmptyString', () => {
const bids = spec.interpretResponse('', request);
assert.deepStrictEqual(bids, []);
});
it('interpretResponseEmptyArray', () => {
const bids = spec.interpretResponse([], request);
assert.deepStrictEqual(bids, []);
});
});
});

0 comments on commit 9edf12b

Please sign in to comment.