From b778c8433a2b58b1796c49d9ed24804302e48d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 13 Dec 2017 12:06:52 -0500 Subject: [PATCH] change hook name --- test/plugins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/plugins.js b/test/plugins.js index dd6654cbef..47f3969a40 100644 --- a/test/plugins.js +++ b/test/plugins.js @@ -77,7 +77,9 @@ describe('Plugins', function () { callback(null, data); } + plugins.registerHook('test-plugin-crash', { hook: 'filter:test.crashHook', method: filterMethod }); + plugins.fireHook('filter:test.crashHook', { foo: 1 }, function (err, data) { assert(err); assert.equal(err.message, 'Cannot set property \'a\' of undefined'); done();