From cb69934ad00ce47476e04097ca3d5f47dab3bdae Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 Sep 2021 10:43:45 -0400 Subject: [PATCH] test: no need to create fake interstitial as NodeBB comes with some by default --- test/controllers.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index 5696ea7073..d3820d743e 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -302,16 +302,6 @@ describe('Controllers', () => { }); it('should load /register/complete', (done) => { - function hookMethod(data, next) { - data.interstitials.push({ template: 'topic.tpl', data: {} }); - next(null, data); - } - - plugins.hooks.register('myTestPlugin', { - hook: 'filter:register.interstitial', - method: hookMethod, - }); - const data = { username: 'interstitial', password: '123456', @@ -347,7 +337,6 @@ describe('Controllers', () => { assert(body.sections); assert(body.errors); assert(body.title); - plugins.hooks.unregister('myTestPlugin', 'filter:register.interstitial', hookMethod); done(); }); });