Skip to content

Commit

Permalink
feat(spec): fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yubei01 committed Jan 19, 2024
1 parent e37811f commit 3d327f4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/spec/modules/discoveryBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ describe('discovery:BidAdapterTests', function () {
).to.equal(true);
});

it('discovery:no params', function () {
it('isBidRequestValid:no_params', function () {
expect(
spec.isBidRequestValid({
bidder: 'discovery',
params: {},
})
).to.be.undefined;
).to.equal(true);
});

it('discovery:validate_generated_params', function () {
Expand All @@ -179,12 +179,6 @@ describe('discovery:BidAdapterTests', function () {
expect(req_data.imp).to.have.lengthOf(1);
});

it('discovery:no_params', function () {
request = spec.buildRequests(bidRequestDataNoParams.bids, bidRequestData);
let req_data = JSON.parse(request.data);
expect(req_data.imp).to.have.lengthOf(0);
});

describe('discovery: buildRequests', function() {
describe('getPmgUID function', function() {
let sandbox;
Expand Down

0 comments on commit 3d327f4

Please sign in to comment.