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

@@ -346,7 +346,7 @@ describe('Controllers', () => {
before(async () => {
// Attach an emailer hook so related requests do not error
plugins.hooks.register('emailer-test', {
hook: 'filter:email.send',
hook: 'static:email.send',
method: dummyEmailerHook,
});
@@ -361,7 +361,7 @@ describe('Controllers', () => {
after(() => {
meta.config.requireEmailAddress = 0;
plugins.hooks.unregister('emailer-test', 'filter:email.send');
plugins.hooks.unregister('emailer-test', 'static:email.send');
});
it('email interstitial should still apply if empty email entered and requireEmailAddress is enabled', async () => {