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

avajs / ava / 3243
42%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2017 03:10PM UTC
Jobs 3
Files 36
Run time 50s
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
3243

push

travis-ci

sindresorhus
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.

966 of 1037 branches covered (93.15%)

12 of 12 new or added lines in 1 file covered. (100.0%)

2060 of 2126 relevant lines covered (96.9%)

597.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3243.1 05 Apr 2017 03:10PM UTC 0
96.9
Travis Job 3243.1
2 3243.2 05 Apr 2017 03:11PM UTC 0
96.9
Travis Job 3243.2
3 3243.3 05 Apr 2017 03:11PM UTC 0
96.9
Travis Job 3243.3
Source Files on build 3243
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3243
  • affbb457 on github
  • Prev Build on master (#3240)
  • Next Build on master (#3246)
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

© 2025 Coveralls, Inc