mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: fix tests
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user