Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit c831eb8

Browse files
feat: add time test
1 parent 2348fdf commit c831eb8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/time.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { getDifferenceInSecs } from "../utils/time";
2+
3+
test("difference in secs is correct", () => {
4+
expect(getDifferenceInSecs(123000, 246000)).toBe("123.00");
5+
});
6+
7+
test("same times return an 0.00", () => {
8+
expect(getDifferenceInSecs(0, 0)).toBe("0.00");
9+
});

0 commit comments

Comments
 (0)