-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import convertSecondsToDuration from "../../utils/secToDuration"; | ||
import convertSecondsToDuration from "../../utils/secToDuration" | ||
|
||
describe("convertSecondsToDuration", () => { | ||
Check failure on line 3 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
it("should correctly convert seconds to hours and minutes", () => { | ||
Check failure on line 4 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
expect(convertSecondsToDuration(3661)).toBe("1h 1m"); | ||
}); | ||
expect(convertSecondsToDuration(3661)).toBe("1h 1m") | ||
Check failure on line 5 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
}) | ||
|
||
it("should correctly convert seconds to minutes and seconds", () => { | ||
Check failure on line 8 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
expect(convertSecondsToDuration(61)).toBe("1m 1s"); | ||
}); | ||
expect(convertSecondsToDuration(61)).toBe("1m 1s") | ||
Check failure on line 9 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
}) | ||
|
||
it("should correctly convert seconds to seconds", () => { | ||
Check failure on line 12 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
expect(convertSecondsToDuration(1)).toBe("1s"); | ||
}); | ||
}); | ||
expect(convertSecondsToDuration(1)).toBe("1s") | ||
Check failure on line 13 in backend/test/utils/secToDuration.test.js GitHub Actions / build
|
||
}) | ||
}) |