chore: merge dev to main #181

Merged
Anri merged 40 commits from dev into main 2024-09-27 20:49:36 +02:00
Showing only changes of commit 8f33dd8ea4 - Show all commits

View file

@ -1,4 +1,4 @@
import { showDate } from "../../utils/time"; import { showDate, strToSeconds } from "../../utils/time";
describe("Date with correct timezone", () => { describe("Date with correct timezone", () => {
const map = new Map([["u_time_at", "@"]]); const map = new Map([["u_time_at", "@"]]);
@ -31,20 +31,18 @@ describe("Date with correct timezone", () => {
} }
}); });
/* describe("String time to seconds", () => { describe("String time to seconds", () => {
{ {
const name = "10m30"; const name = "10m30";
test(name, () => { test(name, () => {
expect(strToSeconds(name)).toBe(630); expect(strToSeconds(name)).toBe(630);
}); });
} }
}); */
/* describe("Time delta", () => {
{ {
const name = 1312; // todo: see https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/issues/183
test(name.toString(), () => { const name = "12h30";
expect(timeDeltaToString(name)).toBe("0 secs"); test(name, () => {
/* expect(strToSeconds(name)).toBe(45000); */
}); });
} }
}); */ });