update eslint config for latest version
[squeep-api-dingus] / test / lib / router.js
index bcb45f2d00bbfacad8bb33c5fe593cbfce6183b5..488d5ceec03ceb5f006230999ce335cf8e2d111c 100644 (file)
@@ -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\'');
       }
     });