Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Feb 4, 2025
1 parent d20935f commit f146d41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/api/test/batch.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe("BatchController (e2e)", () => {
batchRepository = app.get<Repository<BatchDetails>>(getRepositoryToken(BatchDetails));

for (let i = 0; i < 40; i++) {
const isTeeProven = i >= 5 && i < 20;
const isCommitted = i < 30;
const isProven = i < 20;
const isExecuted = i < 10;
Expand All @@ -43,6 +44,7 @@ describe("BatchController (e2e)", () => {
committedAt: isCommitted ? new Date("2022-11-10T14:44:06.000Z") : null,
provenAt: isProven ? new Date("2022-11-10T14:44:07.000Z") : null,
executedAt: isExecuted ? new Date("2022-11-10T14:44:08.000Z") : null,
teeProvenAt: isTeeProven ? new Date("2022-11-10T14:44:09.000Z") : null,
});
}
});
Expand Down Expand Up @@ -75,6 +77,7 @@ describe("BatchController (e2e)", () => {
committedAt: "2022-11-10T14:44:06.000Z",
provenAt: "2022-11-10T14:44:07.000Z",
executedAt: "2022-11-10T14:44:08.000Z",
teeProvenAt: null,
})
);
});
Expand All @@ -92,6 +95,7 @@ describe("BatchController (e2e)", () => {
committedAt: "2022-11-10T14:44:06.000Z",
provenAt: "2022-11-10T14:44:07.000Z",
executedAt: "2022-11-10T14:44:08.000Z",
teeProvenAt: null,
})
);
});
Expand All @@ -109,6 +113,7 @@ describe("BatchController (e2e)", () => {
committedAt: "2022-11-10T14:44:06.000Z",
provenAt: "2022-11-10T14:44:07.000Z",
executedAt: null,
teeProvenAt: "2022-11-10T14:44:09.000Z",
})
);
});
Expand All @@ -126,6 +131,7 @@ describe("BatchController (e2e)", () => {
committedAt: "2022-11-10T14:44:06.000Z",
provenAt: null,
executedAt: null,
teeProvenAt: null,
})
);
});
Expand All @@ -143,6 +149,7 @@ describe("BatchController (e2e)", () => {
committedAt: null,
provenAt: null,
executedAt: null,
teeProvenAt: null,
})
);
});
Expand Down

0 comments on commit f146d41

Please sign in to comment.