mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 07:33:48 +01:00
fix: ✅ fix StringHelperFunctions test
This commit is contained in:
parent
02d3c0e188
commit
2682bda9dd
@ -2,7 +2,7 @@ import { convertTimeMsToTimeElapsedString } from "../../src/utils/StringHelperFu
|
|||||||
|
|
||||||
describe("StringHelperFunctions Tests", function () {
|
describe("StringHelperFunctions Tests", function () {
|
||||||
it("transforms strings", () => {
|
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(5 * 60 * 1000 + 34 * 1000)).toEqual("5 minutes 34 seconds");
|
||||||
expect(convertTimeMsToTimeElapsedString(2 * 60 * 60 * 24 * 1000 + 5 * 60 * 1000 + 34 * 1000)).toEqual(
|
expect(convertTimeMsToTimeElapsedString(2 * 60 * 60 * 24 * 1000 + 5 * 60 * 1000 + 34 * 1000)).toEqual(
|
||||||
"2 days 5 minutes 34 seconds",
|
"2 days 5 minutes 34 seconds",
|
||||||
|
Loading…
Reference in New Issue
Block a user