This commit is contained in:
2026-04-16 17:21:48 +03:00
parent c8fa4c442d
commit c8e7e4e927
116 changed files with 3720 additions and 4197 deletions
@@ -1,7 +1,7 @@
import { FeederService } from '../modules/feeder/feeder.service';
import { HistoricalResultsSyncTask } from './historical-results-sync.task';
import { FeederService } from "../modules/feeder/feeder.service";
import { HistoricalResultsSyncTask } from "./historical-results-sync.task";
describe('HistoricalResultsSyncTask', () => {
describe("HistoricalResultsSyncTask", () => {
const runPreviousDayCompletedMatchesScan = jest.fn();
let task: HistoricalResultsSyncTask;
@@ -18,14 +18,14 @@ describe('HistoricalResultsSyncTask', () => {
delete process.env.FEEDER_MODE;
});
it('calls feeder service in normal mode', async () => {
it("calls feeder service in normal mode", async () => {
await task.syncPreviousDayCompletedMatches();
expect(runPreviousDayCompletedMatchesScan).toHaveBeenCalledTimes(1);
});
it('skips execution in historical feeder mode', async () => {
process.env.FEEDER_MODE = 'historical';
it("skips execution in historical feeder mode", async () => {
process.env.FEEDER_MODE = "historical";
await task.syncPreviousDayCompletedMatches();