This commit is contained in:
syuilo 2023-02-22 15:12:21 +09:00
parent dfc1410bb0
commit 29399e1ddc

View File

@ -19,7 +19,7 @@ import Logger from '@/logger.js';
describe('Chart', () => { describe('Chart', () => {
const config = loadConfig(); const config = loadConfig();
const appLockService = { const appLockService = {
getChartInsertLock: jest.fn().mockImplementation(() => Promise.resolve(() => {})), getChartInsertLock: () => () => Promise.resolve(() => {}),
} as unknown as jest.Mocked<AppLockService>; } as unknown as jest.Mocked<AppLockService>;
let db: DataSource | undefined; let db: DataSource | undefined;