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

prebid / Prebid.js / 16210324765

11 Jul 2025 02:21AM UTC coverage: 96.235% (+0.005%) from 96.23%
16210324765

push

github

3d22c1
web-flow
Build system: update coveralls report (#13564) 

* Fix coveralls comparisons

* debug optios

* remove debug flag

* checkout depending on event type

* fix merge sha ref

* use pulls/merge ref

* use checkout outputs

* try refs/head

* use branch name for coveralls

* try checking owner

* add print statements

* revert to using commit

* undo test config

* debug logging

* more logging

* .before, not push.before

* more adjustments

* user owner.id and not name

* use .login for repo

* try to match gh ui

* refactor

* fix outputs

* print commit info

* Substitute comment

* fix typo

* fix condition

* adjust some more

* fix syntax

* quotes

* third time etc

* try other variations

* ridiculous

* more debug

* debug condition

* setup token

* pass repo

* remove comment logic

* undo debug changes

* remove duplicate outputs

* remove stray condition

* step outputs not job outputs

39178 of 48116 branches covered (81.42%)

192489 of 200020 relevant lines covered (96.23%)

88.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/test/spec/utils/prerendering_spec.js
1
import {delayIfPrerendering} from '../../../src/utils/prerendering.js';
2

3
describe('delayIfPrerendering', () => {
1✔
4
  let sandbox, enabled, ran;
5
  beforeEach(() => {
1✔
6
    sandbox = sinon.createSandbox();
3✔
7
    enabled = true;
3✔
8
    ran = false;
3✔
9
  });
10

11
  afterEach(() => {
1✔
12
    sandbox.restore();
3✔
13
  })
14

15
  const delay = delayIfPrerendering(() => enabled, () => {
2✔
16
    ran = true;
3✔
17
  })
18

19
  it('should not delay if page is not prerendering', () => {
1✔
20
    delay();
1✔
21
    expect(ran).to.be.true;
1✔
22
  })
23

24
  describe('when page is prerendering', () => {
1✔
25
    before(() => {
1✔
26
      if (!('prerendering' in document)) {
1!
27
        document.prerendering = null;
×
28
        after(() => {
×
29
          delete document.prerendering;
×
30
        })
31
      }
32
    })
33
    beforeEach(() => {
1✔
34
      sandbox.stub(document, 'prerendering').get(() => true);
2✔
35
    });
36
    function prerenderingDone() {
37
      document.dispatchEvent(new Event('prerenderingchange'));
1✔
38
    }
39

40
    it('should run fn only after prerenderingchange event', async () => {
1✔
41
      delay();
1✔
42
      expect(ran).to.be.false;
1✔
43
      prerenderingDone();
1✔
44
      expect(ran).to.be.true;
1✔
45
    });
46

47
    it('should not delay if not enabled', () => {
1✔
48
      enabled = false;
1✔
49
      delay();
1✔
50
      expect(ran).to.be.true;
1✔
51
    })
52
  })
53
})
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