Skip to content

Commit

Permalink
Michao Bid Adapter: Change the method used by the property validation…
Browse files Browse the repository at this point in the history
… system
  • Loading branch information
hogekai committed Dec 13, 2024
1 parent 3292094 commit a35a9a6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions test/spec/modules/michaoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(1);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[0]).to.have.property(
'banner'
);
});
Expand All @@ -388,9 +388,7 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(1);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
'video'
);
expect(result[0].data.imp[0]).to.have.property('video');
});

it('creates native-specific bid request from bid request containing one native format', () => {
Expand Down Expand Up @@ -427,10 +425,10 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(2);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[0]).to.have.property(
'banner'
);
expect(result[0].data.imp[1]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[1]).to.have.property(
'video'
);
});
Expand All @@ -454,7 +452,7 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(2);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[0]).to.have.property(
'banner'
);
});
Expand All @@ -478,9 +476,7 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(2);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
'video'
);
expect(result[0].data.imp[0]).to.have.property('video');
});

it('creates banner, video and native bid request with three impressions from bid request containing all three formats', () => {
Expand All @@ -503,10 +499,10 @@ describe('Michao Bid Adapter', () => {

expect(result.length).to.equal(1);
expect(result[0].data.imp.length).to.equal(3);
expect(result[0].data.imp[0]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[0]).to.have.property(
'banner'
);
expect(result[0].data.imp[1]).to.have.haveOwnPropertyDescriptor(
expect(result[0].data.imp[1]).to.have.property(
'video'
);
});
Expand Down

0 comments on commit a35a9a6

Please sign in to comment.