Skip to content

Commit

Permalink
update databaseConfig.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bonukai committed Dec 27, 2024
1 parent 54809e2 commit 3c55a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/__tests__/databaseConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jest.mock('@lingui/core', () => ({
},
}));

jest.spyOn(Database, 'knex' as never, 'get').mockImplementation(
jest.spyOn(Database as any, 'knex', 'get').mockImplementation(
() =>
({
migrate: {
Expand Down Expand Up @@ -60,7 +60,7 @@ describe('database config', () => {
const errorSpy = jest.spyOn(logger, 'error').mockImplementation(jest.fn());
const warnSpy = jest.spyOn(logger, 'http').mockImplementation(jest.fn());

jest.spyOn(Database, 'knex' as never, 'get').mockImplementation(
jest.spyOn(Database as any, 'knex', 'get').mockImplementation(
() =>
({
migrate: {
Expand Down

0 comments on commit 3c55a8e

Please sign in to comment.