find a bug
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 19s

This commit is contained in:
Mylloon 2024-09-27 16:39:49 +02:00
parent 4dad223f1b
commit 8f33dd8ea4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,4 +1,4 @@
import { showDate } from "../../utils/time";
import { showDate, strToSeconds } from "../../utils/time";
describe("Date with correct timezone", () => {
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";
test(name, () => {
expect(strToSeconds(name)).toBe(630);
});
}
}); */
/* describe("Time delta", () => {
{
const name = 1312;
test(name.toString(), () => {
expect(timeDeltaToString(name)).toBe("0 secs");
// todo: see https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/issues/183
const name = "12h30";
test(name, () => {
/* expect(strToSeconds(name)).toBe(45000); */
});
}
}); */
});