From f8ebf581f8272615f48ce355c6b2cbf8248c73bd Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 2 Dec 2020 15:26:25 +0300 Subject: feat: export client class --- test/event.model.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/event.model.test.ts') 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 () => { -- cgit v1.2.3