Spaces:
Configuration error
Configuration error
Download frontend/__tests__/utils/format-ms.test.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/__tests__/utils/format-ms.test.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/__tests__/utils/format-ms.test.ts
-
curl -L -o format-ms.test.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/__tests__/utils/format-ms.test.ts
309 Bytes
| import { test, expect } from "vitest"; | |
| import { formatMs } from "../../src/utils/format-ms"; | |
| test("formatMs", () => { | |
| expect(formatMs(1000)).toBe("00:01"); | |
| expect(formatMs(1000 * 60)).toBe("01:00"); | |
| expect(formatMs(1000 * 60 * 2.5)).toBe("02:30"); | |
| expect(formatMs(1000 * 60 * 12)).toBe("12:00"); | |
| }); | |