Skip to content

Commit

Permalink
fix(route:test): improve test expectations to match instead of strict…
Browse files Browse the repository at this point in the history
… equal
  • Loading branch information
thetutlage committed Jun 23, 2016
1 parent 1fb8eb3 commit 31e8d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"bcryptjs": "^2.3.0",
"cat-log": "^1.0.0",
"cat-log": "^1.0.2",
"co": "^4.6.0",
"dotenv": "^2.0.0",
"eventemitter2": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/route.spec.js
Expand Up @@ -106,7 +106,7 @@ describe('Route',function () {
const inspect = stderr.inspect()
Route.resource('/', 'HomeController')
inspect.restore()
expect(inspect.output[inspect.output.length - 2].trim()).to.equal('You are registering a resource for / path, which is not a good practice')
expect(inspect.output[inspect.output.length - 2].trim()).to.match(/You are registering a resource for \/ path, which is not a good practice/)
})

it('should be able to get a route with it\'s name', function () {
Expand Down

0 comments on commit 31e8d6c

Please sign in to comment.