aboutsummaryrefslogtreecommitdiff
path: root/test/event.model.test.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-02 15:26:25 +0300
committereug-vs <eug-vs@keemail.me>2020-12-02 15:26:25 +0300
commitf8ebf581f8272615f48ce355c6b2cbf8248c73bd (patch)
tree9473834f4045a9375dc0db48f042f4a6df0e016c /test/event.model.test.ts
parent994e0df96267b3de4d82926555ac4c4c7eefe14a (diff)
downloadmongo-cronjob-f8ebf581f8272615f48ce355c6b2cbf8248c73bd.tar.gz
feat: export client class
Diffstat (limited to 'test/event.model.test.ts')
-rw-r--r--test/event.model.test.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/event.model.test.ts b/test/event.model.test.ts
index d7a4601..b06b268 100644
--- a/test/event.model.test.ts
+++ b/test/event.model.test.ts
@@ -1,10 +1,11 @@
import { expect } from 'chai';
-import Model from './model';
-import connection from './utils/dbConnection';
+import client from './client';
+
+const Model = client.Event;
describe('Event model', () => {
after(async () => {
- connection.dropCollection('customevents');
+ client.connection.dropCollection('events');
});
it('Should assign status and nextRunAt on creation', async () => {