fix: removed methods

This commit is contained in:
Barış Soner Uşaklı
2021-01-27 17:36:58 -05:00
parent 05be1c6603
commit 647d3ba810
11 changed files with 48 additions and 49 deletions

View File

@@ -247,13 +247,13 @@ describe('socket.io', function () {
}
before(function () {
// Attach an emailer hook so related requests do not error
plugins.registerHook('emailer-test', {
plugins.hooks.register('emailer-test', {
hook: 'filter:email.send',
method: dummyEmailerHook,
});
});
after(function () {
plugins.unregisterHook('emailer-test', 'filter:email.send');
plugins.hooks.unregister('emailer-test', 'filter:email.send');
});
it('should validate emails', function (done) {