hotfix/92-osc timer is absolute (#92)

Fixes issues with approximating timers in the app views
This commit is contained in:
Carlos Valente
2022-01-14 20:47:39 +01:00
committed by GitHub
parent 48093b8651
commit ba782d5d22
13 changed files with 90 additions and 99 deletions
+11
View File
@@ -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';