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

prebid / Prebid.js / 16912092974

12 Aug 2025 02:34PM UTC coverage: 96.257% (+0.009%) from 96.248%
16912092974

push

github

web-flow
Bump neostandard from 0.12.1 to 0.12.2 (#13755)

Bumps [neostandard](https://github.com/neostandard/neostandard) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/neostandard/neostandard/releases)
- [Changelog](https://github.com/neostandard/neostandard/blob/main/CHANGELOG.md)
- [Commits](https://github.com/neostandard/neostandard/compare/v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: neostandard
  dependency-version: 0.12.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

39437 of 48455 branches covered (81.39%)

195399 of 202997 relevant lines covered (96.26%)

124.27 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