mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: removed methods
This commit is contained in:
@@ -2165,7 +2165,7 @@ describe('Topic\'s', function () {
|
||||
|
||||
it('should return results', function (done) {
|
||||
var plugins = require('../src/plugins');
|
||||
plugins.registerHook('myTestPlugin', {
|
||||
plugins.hooks.register('myTestPlugin', {
|
||||
hook: 'filter:topic.search',
|
||||
method: function (data, callback) {
|
||||
callback(null, [1, 2, 3]);
|
||||
|
||||
Reference in New Issue
Block a user