diff --git a/packages/polka/package.json b/packages/polka/package.json index 0f35b5f..c7053c9 100644 --- a/packages/polka/package.json +++ b/packages/polka/package.json @@ -14,6 +14,6 @@ }, "dependencies": { "parseurl": "^1.3.2", - "trouter": "^1.0.0" + "trouter": "^1.1.0" } } diff --git a/tests/polka.js b/tests/polka.js index 0b30e39..824db34 100644 --- a/tests/polka.js +++ b/tests/polka.js @@ -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();