Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDeveloper36 committed Jun 29, 2024
1 parent 1c9cde8 commit f5f20dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/test/services/model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const modelMocks = vi.hoisted(() => {
})
vi.mock('../../src/models/Model.js', () => ({ default: modelMocks }))

vi.mock('../../src/utils/database.ts', async () => ({
isReplicaSet: vi.fn(() => false),
}))

const authenticationMocks = vi.hoisted(() => ({
getEntities: vi.fn(() => ['user']),
}))
Expand Down

0 comments on commit f5f20dd

Please sign in to comment.