Skip to content

Commit

Permalink
update tests after trouter@1.1.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 14, 2018
1 parent d2f5f96 commit 8af07b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/polka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"dependencies": {
"parseurl": "^1.3.2",
"trouter": "^1.0.0"
"trouter": "^1.1.0"
}
}
6 changes: 2 additions & 4 deletions tests/polka.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ test('polka::internals', async t => {

METHODS.forEach(k => {
t.isFunction(app[k.toLowerCase()], `app.${k.toLowerCase()} is a function`);
t.isArray(app.routes[k], `~> routes.${k} is an object`);
t.isEmpty(app.routes[k], `~> routes.${k} is empty`);
t.isObject(app.handlers[k], `~> handlers.${k} is an object`);
t.isEmpty(app.handlers[k], `~> handlers.${k} is empty`);
t.is(app.handlers[k], undefined, `~> handlers.${k} is empty`);
t.is(app.routes[k], undefined, `~> routes.${k} is empty`);
});

t.end();
Expand Down

0 comments on commit 8af07b5

Please sign in to comment.