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);
});