diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/event.model.test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/event.model.test.ts b/test/event.model.test.ts index 05afb7a..0ca3166 100644 --- a/test/event.model.test.ts +++ b/test/event.model.test.ts @@ -1,7 +1,12 @@ import { expect } from 'chai'; import Model from './model'; +import connection from './utils/dbConnection'; describe('Event model', () => { + after(async () => { + connection.dropCollection('customevents'); + }); + it('Should assign status and nextRunAt on creation', async () => { const event = await Model.create({ type: 'test', |