Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshapiro committed Jun 6, 2017
1 parent 6130309 commit 6a75b8f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.6.9

- Workaround the chai-as-promised w/chai-4.0 issue
- Fix job crash on error

## 0.6.8

- Moved http, framework and services tests to respective directories
Expand Down
9 changes: 9 additions & 0 deletions examples/app/test/some_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ describe('Hello', function() {
expect(2).to.equal(2)
})

describe('chai-as-promised', function() {
it('detects rejection', async function() {
let start = Date.now()
let promise = Promise.delay(100).throw('Error')
await expect(promise).to.be.rejectedWith('Error')
expect(Date.now() - start).to.be.gte(99)
})
})

it('works with promises', async function() {
let start = Date.now()
await Promise.delay(100)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quadro",
"version": "0.6.8",
"version": "0.6.9",
"keywords": [
"framework",
"quadro",
Expand All @@ -22,7 +22,7 @@
"bunyan": "^1.8.10",
"bunyan-logstash-tcp": "^1.0.0",
"chai": "^4.0.0",
"chai-as-promised": "^6.0.0",
"chai-as-promised": "meeber/chai-as-promised#chai-issue-723",
"chai-subset": "^1.5.0",
"co": "^4.6.0",
"colors": "^1.1.2",
Expand Down

0 comments on commit 6a75b8f

Please sign in to comment.