From 1517b3c766fdc20cc8da286db9f5b02625d51182 Mon Sep 17 00:00:00 2001 From: monirul1 Date: Thu, 4 May 2023 21:09:55 -0400 Subject: [PATCH] h8-cleanups --- src/__tests__/mongo-wrapper.test.ts | 12 ++++++++++-- src/utils/user.ts | 10 ---------- 2 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 src/utils/user.ts diff --git a/src/__tests__/mongo-wrapper.test.ts b/src/__tests__/mongo-wrapper.test.ts index 66aa03e..3b2d4d4 100644 --- a/src/__tests__/mongo-wrapper.test.ts +++ b/src/__tests__/mongo-wrapper.test.ts @@ -1,6 +1,14 @@ -import { InsertManyResult, InsertOneResult, MongoServerError } from 'mongodb'; +import { InsertOneResult, MongoServerError, ObjectId } from 'mongodb'; import { MongoDbWrapperInterface, MongoDbWrapper } from '../mongo-wrapper'; -import { User } from '../utils/user'; + +interface User extends Document { + _id: ObjectId; + name: string; + email: string; + age: number; +} + +export { User }; describe('MongoDbWrapper', () => { let mongoDbWrapper: MongoDbWrapperInterface; diff --git a/src/utils/user.ts b/src/utils/user.ts deleted file mode 100644 index 0b87341..0000000 --- a/src/utils/user.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ObjectId } from 'mongodb'; -// test user document object -interface User extends Document { - _id: ObjectId; - name: string; - email: string; - age: number; -} - -export { User };