mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
hotfix/92-osc timer is absolute (#92)
Fixes issues with approximating timers in the app views
This commit is contained in:
@@ -57,6 +57,17 @@ describe('test string to millis function', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('test stringFromMillis handles partial secs', () => {
|
||||
it('test with 1795829', () => {
|
||||
const t = { val: 1795829, result: '00:29:55' };
|
||||
expect(stringFromMillis(t.val)).toBe(t.result);
|
||||
});
|
||||
it('test with 1797482', () => {
|
||||
const t = { val: 1797482, result: '00:29:57' };
|
||||
expect(stringFromMillis(t.val)).toBe(t.result);
|
||||
});
|
||||
});
|
||||
|
||||
describe('test excel date parser', () => {
|
||||
it('handles an invalid date string', () => {
|
||||
const s = 'hello';
|
||||
|
||||
Reference in New Issue
Block a user