From 8af07b5ecbd4022771048e438fbd34a4f0058bd5 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Mon, 14 May 2018 11:59:06 -0700 Subject: [PATCH] update tests after trouter@1.1.0 changes --- packages/polka/package.json | 2 +- tests/polka.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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();