• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

prebid / Prebid.js / 24458762341
96%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2026 02:16PM UTC
Jobs 1
Files 1828
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Apr 2026 01:58PM UTC coverage: 96.368%. Remained the same
24458762341

push

github

db186b
web-flow
Smartx Bid Adapter: fix outstream renderer tests and wire adUnitCode (#14727)

The three oustreamRender tests in smartxBidAdapter_spec.js currently fail
against master with 'Cannot read properties of undefined (reading find)'
thrown from isRendererPreferredFromAdUnit in src/Renderer.js. The adapter
tests import the module directly without running a full pbjs init, so
pbjs.adUnits is undefined and the .find() call in that core function
throws as soon as bid.renderer.render() runs in the describe block. The
second and third tests then cascade with 'Attempted to wrap
getElementById which is already wrapped' because the first test throws
before its sinon stub is restored.

Seed pbjs.adUnits = [] in a before() hook at the top of the spec so the
core lookup has an iterable to traverse. This is the same workaround
showheroes-bsBidAdapter_spec.js already ships (with the same inline
comment about the Renderer.js call path), so it is a known-good pattern
for this class of outstream adapter tests.

While here, pass the bid request's adUnitCode into Renderer.install so
that in a real auction a publisher can override the smartx-supplied
renderer via their adUnit renderer configuration. The adapter was
previously constructing the renderer with no adUnitCode at all, which
meant isRendererPreferredFromAdUnit always matched against nothing and
publisher overrides were silently ignored. Same pattern as
showheroes-bsBidAdapter.js.

No functional change when the adUnitCode is absent (current test fixture
shape); the new argument is an additive option on Renderer.install.

42965 of 52887 branches covered (81.24%)

2 of 2 new or added lines in 1 file covered. (100.0%)

219440 of 227711 relevant lines covered (96.37%)

72.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24458762341.1 15 Apr 2026 02:16PM UTC 2949
83.95
GitHub Action Run
Source Files on build 24458762341
  • Tree
  • List 1828
  • Changed 196
  • Source Changed 2
  • Coverage Changed 196
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24458762341
  • db186b36 on github
  • Prev Build on master (#24456234549)
  • Next Build on master (#24467935681)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc