Skip to content

Commit 3042952

Browse files
committed
tests tmp
1 parent 84d652d commit 3042952

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

test/models/businessOperationsFactory.test.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import DataLoaders from '../../src/dataLoaders';
55
import { Db, ObjectId } from 'mongodb';
66
import { BusinessOperationStatus, BusinessOperationType, PayloadOfDepositByUser } from '@hawk.so/types';
77

8-
beforeAll(async () => {
9-
await mongo.setupConnections();
10-
});
11-
128
describe('Business operation factory', () => {
9+
beforeAll(async () => {
10+
await mongo.setupConnections();
11+
});
12+
1313
it('should create factory instance', () => {
14+
console.log(mongo.databases.hawk)
1415
const factory = new BusinessOperationsFactory(mongo.databases.hawk as Db, new DataLoaders(mongo.databases.hawk as Db));
1516

1617
expect(factory).not.toBe(undefined);
@@ -39,11 +40,12 @@ describe('Business operation factory', () => {
3940

4041
expect(businessOperation).toMatchObject(data);
4142
});
42-
});
43-
44-
afterAll(async done => {
45-
await mongo.mongoClients.hawk?.close();
46-
await mongo.mongoClients.events?.close();
4743

48-
done();
44+
afterAll(async done => {
45+
await mongo.mongoClients.hawk?.close();
46+
await mongo.mongoClients.events?.close();
47+
48+
done();
49+
});
4950
});
51+

0 commit comments

Comments
 (0)