small strict improvements (#1428)

* small `strict` improvements

* fix type

* use isObject
This commit is contained in:
Alex Christoffer Rasmussen
2025-01-06 14:07:36 +01:00
committed by GitHub
parent 743d7fa782
commit cd913fc144
5 changed files with 32 additions and 20 deletions
@@ -15,19 +15,19 @@ describe('test stringToOSCArgs()', () => {
it('empty is nothing', () => {
const test = undefined;
const expected = [];
const expected: any[] = [];
expect(stringToOSCArgs(test)).toStrictEqual(expected);
});
it('empty is nothing', () => {
const test = '';
const expected = [];
const expected: any[] = [];
expect(stringToOSCArgs(test)).toStrictEqual(expected);
});
it('1 space is nothing', () => {
const test = ' ';
const expected = [];
const expected: any[] = [];
expect(stringToOSCArgs(test)).toStrictEqual(expected);
});
@@ -550,7 +550,7 @@ describe('test aliases import', () => {
pathAndParams: 'testpathAndParams',
},
],
} as DatabaseModel;
} as unknown as DatabaseModel;
const parsed = parseUrlPresets(testData);
expect(parsed.length).toBe(1);
@@ -602,7 +602,7 @@ describe('test views import', () => {
app: 'ontime',
version: '2.0.0',
},
} as DatabaseModel;
} as unknown as DatabaseModel;
const parsed = parseViewSettings(testData);
expect(parsed).toStrictEqual(dbModel.viewSettings);
});