fix: init topic events from webserver.js

This commit is contained in:
Julian Lam
2021-02-12 11:50:43 -05:00
parent 6074a0fbbf
commit b81508c4e2
3 changed files with 4 additions and 25 deletions

View File

@@ -55,24 +55,6 @@ describe('Topic Events', () => {
quux: 'quux',
});
});
it('should do nothing if called a second time', async () => {
await plugins.hooks.register('core', {
hook: 'filter:topicEvents.init',
method: async ({ types }) => {
types.bar = {
icon: 'bar',
text: 'baz',
quux: 'quux',
};
return { types };
},
});
await topics.events.init();
assert(!topics.events._types.bar); // bar is explicitly not available
});
});
describe('.log()', () => {