test: fix tests

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 01956af43a
commit 1029a06a87

@ -63,7 +63,7 @@ describe('Plugins', () => {
plugins.hooks.register('test-plugin', { hook: 'filter:test.hook2', method: method2 }); plugins.hooks.register('test-plugin', { hook: 'filter:test.hook2', method: method2 });
const data = await plugins.hooks.fire('filter:test.hook2', { foo: 1 }); const data = await plugins.hooks.fire('filter:test.hook2', { foo: 1 });
assert.strictEqual(data.foo, 8); assert.strictEqual(data.foo, 7);
}); });
it('should register and fire a filter hook that returns a promise that gets rejected', (done) => { it('should register and fire a filter hook that returns a promise that gets rejected', (done) => {

Loading…
Cancel
Save