-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix log message not displaying when referencing missing bidder #1737
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.
nice catch! Thanks
Would love a unit test... |
@robertrmartinez found this one. Just added a unit test. |
test/spec/unit/pbjs_api_spec.js
Outdated
@@ -779,6 +779,24 @@ describe('Unit: Prebid Module', function () { | |||
adaptermanager.callBids.restore(); | |||
}); | |||
|
|||
it('should log an error if a bidder is used that does not exist', () => { |
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 test should go in adapterManager_spec. You can use adaptermanager.callBids function to test.
#1508 has some good arguments to avoid
Also stubs should be in beforeEach loop because if this test fails to avoid logError
wont be restored.
6cee170
to
6072219
Compare
updated |
* 'master' of https://github.com/prebid/Prebid.js: (414 commits) Make response headers available to the specs (prebid#1748) add option to run tests in a specific file (prebid#1727) Update JCM Adapter to 1.0 (prebid#1715) Finished an unfinished comment. (prebid#1749) Platform.io Bidder Adapter update. Prebid v1.0. (prebid#1705) Fix window.top.host cross origin issue when in nested iframes. (prebid#1730) fix log message not displaying when referencing missing bidder (prebid#1737) Allow more than one placement from one page (prebid#1692) Justpremium Adapter bugfix (prebid#1716) Updating license (prebid#1717) realvuBidAdapter (prebid#1571) Update JSDoc to call the module `pbjs` (prebid#1572) Update Beachfront adapter for v1.0 (prebid#1675) Update AdButler adapter for Prebid v1.0 (prebid#1664) Increment pre version Fix for prebid#1628 (allowing standard bidCpmAdjustment) (prebid#1645) Prebid 0.31.0 Release Support native click tracking (prebid#1691) Initial commit for video support for pbs (prebid#1706) Fixes: Immediate adapter response may end auction (prebid#1690) ...
…d#1737) * fix log message not displaying when referencing missing bidder * add test for missing bidder log message * move test to adaptermanager_spec
…d#1737) * fix log message not displaying when referencing missing bidder * add test for missing bidder log message * move test to adaptermanager_spec
Type of change
Description of change
Fixes small bug introduced with #1690 that makes error message never display when referencing a missing adapter.