Skip to content

Commit

Permalink
refactor: rename ObjectID to ObjectId
Browse files Browse the repository at this point in the history
  • Loading branch information
mantariksh committed Jun 1, 2021
1 parent e84794e commit 7ece2ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/modules/webhook/__tests__/webhook.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios'
import { ObjectID } from 'bson'
import { ObjectId } from 'bson'
import mongoose from 'mongoose'
import { mocked } from 'ts-jest/utils'

Expand Down Expand Up @@ -96,7 +96,7 @@ describe('webhook.service', () => {
jest.restoreAllMocks()

// prepare for form creation workflow
const MOCK_ADMIN_OBJ_ID = new ObjectID()
const MOCK_ADMIN_OBJ_ID = new ObjectId()
const MOCK_EPOCH = 1487076708000
const preloaded = await dbHandler.insertFormCollectionReqs({
userId: MOCK_ADMIN_OBJ_ID,
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('webhook.service', () => {

// Act
const actual = await saveWebhookRecord(
new ObjectID(),
new ObjectId(),
mockWebhookResponse,
)

Expand Down

0 comments on commit 7ece2ad

Please sign in to comment.