mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 05:59:34 +02:00
test: fixed
This commit is contained in:
@@ -8,8 +8,6 @@ describe('Convert Days to Hours', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should handle invalid input', () => {
|
it('should handle invalid input', () => {
|
||||||
expect(() => {
|
expect(convertDaysToHours('2\nc\n1', false)).toBe('48\n\n24');
|
||||||
convertDaysToHours('abc', false);
|
|
||||||
}).toThrow('The day on line 1 contains non-digits, so we skip it.');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user