X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Flib%2Frouter.js;h=488d5ceec03ceb5f006230999ce335cf8e2d111c;hb=97be4c0841f2615651c6cd6fb466aada47773cc4;hp=bcb45f2d00bbfacad8bb33c5fe593cbfce6183b5;hpb=031c170bdaf1d9c331e6f6fc701ce6540c0e6941;p=squeep-api-dingus diff --git a/test/lib/router.js b/test/lib/router.js index bcb45f2..488d5ce 100644 --- a/test/lib/router.js +++ b/test/lib/router.js @@ -260,7 +260,7 @@ describe('Router', function () { router.on('FLARP', urlPath, stubHandler); assert.fail('expected an exception'); } catch (e) { - assert.strictEqual(e.name, 'DingusError'); + assert(e instanceof DingusError); assert.strictEqual(e.message, 'invalid method \'FLARP\''); } });