You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MovieFinder/components/__tests__/time.test.ts

14 lines
415 B

import {describe, expect, test} from '@jest/globals';
import {formatTime} from "../../model/formatTime";
describe('return formated time', () => {
test('125to 2h 05m', () => {
expect(formatTime(125)).toBe("2h 05m");
});
test('45to 0h 45m', () => {
expect(formatTime(45)).toBe("0h 45m");
});
test('203to 3h 23m', () => {
expect(formatTime(203)).toBe("3h 23m");
});
});