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

sinonjs / referee / 204
100%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2018 02:19PM UTC
Jobs 1
Files 82
Run time 6s
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

pending completion
204

push

travis-ci

web-flow
 feat(assertion) add resolves/rejects assertions (#45)

* feat(assertions): add resolves/reject

feat(assertion): attempt to add resolves/reject

some experiments so far

feat(assertion): improve resolves assertion and tests

Improve the basic implementation to work in a first stage.
This commit also adds some tests for the assertion.
The gneral assertion handling eas also touched, because an assertion
that returns a promise will return this value to the very end now.
The `resolves` assertion uses samsam's `identical` method to determine
if the given values are equal.

See: #27

feat(assertion): add refute method for `resolves` assertion

This is basically just copied from the `assert` method with negated
condition to pass (samsam's `identical`). Should be later refactored.
Also add some test that prove the behaviour.

See #27

refactor(assertion): add test file for `resolves`

Extract all test regarding the `resolves` assertion into its own test
file next to the source.

See #27

feat(assertion): add rejects

This is more or less a copy of the resolves assertion where the
then/catch functions are switched. Also add some basic tests

See #27

feat(docs): add basics about resolves/rejects

See #27

* refactor(assertions): resolves/rejects

Refactor the resolves/rejects assertions to avoid code duplication.
Introduce a new function that creates asynchronous assertions. This
leaves the old code commented for reference.

See #27

* refactor: changes according to review

* remove commented out code
* wrap tests in context
* don't expose messge properties, set as variable
* improve assert/refute messages
* clearer documentation

Thanks to @mantoni @mroderick

See # 27

182 of 187 branches covered (97.33%)

Branch coverage included in aggregate %.

645 of 648 relevant lines covered (99.54%)

182.24 hits per line

Jobs
ID Job ID Ran Files Coverage
3 204.3 16 Nov 2018 02:19PM UTC 0
99.04
Travis Job 204.3
Source Files on build 204
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #204
  • 1af3c778 on github
  • Prev Build on master (#198)
  • Next Build on master (#207)
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