Skip to content

Node.js based forum software built for the modern web

change hook name

Barış Soner Uşaklıb778c8433a2b
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();