fix: deprecated emailer hook

This commit is contained in:
Julian Lam
2023-12-05 10:41:23 -05:00
parent 2c1c4dfe41
commit 565ca3cc3b
8 changed files with 22 additions and 22 deletions

View File

@@ -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 () => {