Fix history

This commit is contained in:
Zoe Roux
2026-03-17 12:20:29 +01:00
parent 9b23d0714c
commit ca15f57f30
6 changed files with 258 additions and 164 deletions
-2
View File
@@ -42,11 +42,9 @@ describe("Get series", () => {
);
expect(body.firstEntry.videos).toBeArrayOfSize(1);
// check that it's an iso datetime
console.log(body.createdAt);
expect(body.createdAt).toMatch(
/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+Z/,
);
console.log(body.firstEntry.createdAt);
expect(body.firstEntry.createdAt).toMatch(
/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+Z/,
);