-
Notifications
You must be signed in to change notification settings - Fork 2.2k
added onBidWon event #5679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added onBidWon event #5679
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but please add a unit test.
@robertrmartinez Done :) |
'status': 'rendered' | ||
}; | ||
|
||
spec.onBidWon(bids); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not actually test anything.
See this https://github.com/prebid/Prebid.js/blob/master/test/spec/modules/adpartnerBidAdapter_spec.js#L199 example.
From Line 199 and on.
You can see they trigger the spec.onBidWon
but are validating the return, as well as stubbing the request and making sure it has the right data they expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @robertrmartinez we just made the change that you suggested.
Please remove / revert the package-lock.json file from the staged commits and we can merge this |
@robertrmartinez Done |
Type of change
Description of change
onBidWon event