Skip to content

Commit

Permalink
Mock database replica set in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDeveloper36 committed Jul 4, 2024
1 parent f0bc1a0 commit af86873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/test/services/model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const modelMocks = vi.hoisted(() => {
vi.mock('../../src/models/Model.js', () => ({ default: modelMocks }))

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

const authenticationMocks = vi.hoisted(() => ({
Expand Down

0 comments on commit af86873

Please sign in to comment.