Skip to content

Commit

Permalink
Refactor tests.
Browse files Browse the repository at this point in the history
Upgrade dev dependencies. Change should getter assertions to explicit
functions (required by a breaking change in should 7.x).

Clean up test helpers and req/res mocks. Reduce the amount of shared
state. Use promises to make it easier to test asynchronously without
using `before()` blocks.

Group tests more logically by exported property and possible options.
  • Loading branch information
rosston committed Feb 25, 2016
1 parent ba71d4a commit 077eb97
Show file tree
Hide file tree
Showing 2 changed files with 471 additions and 694 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@
"winston": "~1.0.0"
},
"devDependencies": {
"blanket": "~1.1.6",
"mocha": "~2.1.0",
"node-mocks-http": "~1.2.3",
"should": "~4.6.0",
"travis-cov": "~0.2.5"
"blanket": "^1.2.2",
"mocha": "^2.4.5",
"node-mocks-http": "^1.5.1",
"promise": "^7.1.1",
"should": "^8.2.2",
"travis-cov": "^0.2.5"
},
"engines": {
"node": ">=0.10.0"
Expand Down
Loading

0 comments on commit 077eb97

Please sign in to comment.