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

sinonjs / sinon / 1422 / 3
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 23 Dec 2016 11:00AM UTC
Files 70
Run time 3s
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

23 Dec 2016 10:56AM UTC coverage: 96.367% (-0.01%) from 96.38%
1422.3

push

travis-ci

fatso83
Add .resolves and .rejects to stub (#1211)

* Add .resolves and .rejects to stub

This commit adds the possibility for a stub
to be configured to return a promise which will
either resolves or reject

This was already possible, but this adds a shorthand for it

stub.returns(Promise.resolve({})) -> stub.resolve({})
stub.returns(Promise.reject(new Error("bad luck"))) -> stub.rejects("bad luck")

Since Promise are now part of the standard ES6 features, this
commit does not make use of polyfill or third party library.
This is problematic for some browsers and generally for contexts where
the standard is not implemented.

* Use native-promise-only for .resolves and .rejects

* change test titles for chainable methods

11484 of 11917 relevant lines covered (96.37%)

83.72 hits per line

Source Files on job 1422.3
  • Tree
  • List 0
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1422
  • Travis Job 1422.3
  • 2df140fa on github
  • Prev Job for on master (#1420.3)
  • Next Job for on master (#1428.3)
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