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

avajs / ava / 3237 / 2
42%
master: 42%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2017 01:22PM UTC
Files 36
Run time 4s
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

03 Apr 2017 01:19PM UTC coverage: 96.894% (+0.004%) from 96.89%
3237.2

Pull #1335

travis-ci

web-flow
Fail tests that finish with pending assertions

`t.throws()` and `t.notThrows()` can be called with an observable or
promise. This commit forces users to wait for the assertion to complete
before finishing the test. Usually this means the test has to be written
like:

```js
test(async t => {
  await t.throws(Promise.reject(new Error()))
})
```

Or for callback tests:

```js
test.cb(t => {
  t.throws(Promise.reject(new Error())).then(t.end)
})
```

This simplifies internal logic and helps discourage code like in #1327.
Anecdotally users are surprised by the previous behavior where a
synchronous test worked with an asynchronous assertion
(https://github.com/avajs/ava/issues/1327#issuecomment-291122432).

Fixes #1327.
Pull Request #1335: Fail tests that finish with pending assertions

965 of 1037 branches covered (93.06%)

2059 of 2125 relevant lines covered (96.89%)

195.62 hits per line

Source Files on job 3237.2
  • Tree
  • List 0
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3237
  • Travis Job 3237.2
  • c1ea2d65 on github
  • Prev Job for on master (#3229.2)
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