mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fix: deprecated emailer hook
This commit is contained in:
@@ -26,7 +26,7 @@ describe('authentication', () => {
|
||||
before((done) => {
|
||||
// Attach an emailer hook so related requests do not error
|
||||
plugins.hooks.register('authentication-test', {
|
||||
hook: 'filter:email.send',
|
||||
hook: 'static:email.send',
|
||||
method: dummyEmailerHook,
|
||||
});
|
||||
|
||||
@@ -39,7 +39,7 @@ describe('authentication', () => {
|
||||
});
|
||||
|
||||
after(() => {
|
||||
plugins.hooks.unregister('authentication-test', 'filter:email.send');
|
||||
plugins.hooks.unregister('authentication-test', 'static:email.send');
|
||||
});
|
||||
|
||||
it('should allow login with email for uid 1', async () => {
|
||||
|
||||
Reference in New Issue
Block a user