fix: fix StringHelperFunctions test

This commit is contained in:
Shiiyu 2022-09-23 18:13:33 -04:00 committed by GitHub
parent 02d3c0e188
commit 2682bda9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@ import { convertTimeMsToTimeElapsedString } from "../../src/utils/StringHelperFu
describe("StringHelperFunctions Tests", function () {
it("transforms strings", () => {
expect(convertTimeMsToTimeElapsedString(1000)).toEqual("1 seconds");
expect(convertTimeMsToTimeElapsedString(1000)).toEqual("1 second");
expect(convertTimeMsToTimeElapsedString(5 * 60 * 1000 + 34 * 1000)).toEqual("5 minutes 34 seconds");
expect(convertTimeMsToTimeElapsedString(2 * 60 * 60 * 24 * 1000 + 5 * 60 * 1000 + 34 * 1000)).toEqual(
"2 days 5 minutes 34 seconds",