change hook name

v1.18.x
Barış Soner Uşaklı 7 years ago
parent b55087dab7
commit b778c8433a

@ -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();

Loading…
Cancel
Save