cr
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user