diff options
author | eug-vs <eug-vs@keemail.me> | 2020-12-02 04:22:37 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-12-02 04:22:37 +0300 |
commit | 4d35fe77fec445c3606adf383967ba1ddfcbdb56 (patch) | |
tree | 19434b0447d6aa30dca598ff69a40a2599cbc4fd | |
parent | 6f52408e7bf79730df9eb7b487dcacf468e409e1 (diff) | |
download | mongo-cronjob-4d35fe77fec445c3606adf383967ba1ddfcbdb56.tar.gz |
test: drop collection after test case
-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', |