Skip to content
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

Merged
merged 3 commits into from
Oct 23, 2017

Conversation

snapwich
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

Fixes small bug introduced with #1690 that makes error message never display when referencing a missing adapter.

Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch! Thanks

@mkendall07
Copy link
Member

Would love a unit test...

@snapwich
Copy link
Collaborator Author

@robertrmartinez found this one. Just added a unit test.

@@ -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', () => {
Copy link
Collaborator

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 $$PREBID_GLOBAL$$ in unit tests

Also stubs should be in beforeEach loop because if this test fails to avoid logError wont be restored.

@snapwich
Copy link
Collaborator Author

updated

@dbemiller dbemiller merged commit 505f7f3 into prebid:master Oct 23, 2017
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Oct 25, 2017
* '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)
  ...
mattpr pushed a commit to mattpr/Prebid.js that referenced this pull request Oct 31, 2017
…d#1737)

* fix log message not displaying when referencing missing bidder

* add test for missing bidder log message

* move test to adaptermanager_spec
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
…d#1737)

* fix log message not displaying when referencing missing bidder

* add test for missing bidder log message

* move test to adaptermanager_spec
@robertrmartinez robertrmartinez deleted the log-missing-adapter branch July 5, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants