Skip to content

Commit e261da0

Browse files
committed
Fixes for failing tests on master
1 parent ff8e0cb commit e261da0

4 files changed

Lines changed: 804 additions & 485 deletions

File tree

src/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function arrayUnset<T>(items: Array<T>, item: T) {
205205

206206
function debounce<P extends any[]>(
207207
f: (...params: P) => any,
208-
timeout: number = 0
208+
timeout: number = 0,
209209
): (...param: P) => void {
210210
let timer: ReturnType<typeof setTimeout>;
211211
return function (this: any, ...args: any[]) {
@@ -231,5 +231,5 @@ export {
231231
timerStop,
232232
arraySet,
233233
arrayUnset,
234-
debounce
234+
debounce,
235235
};

tests/bin/utils.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('bin/utils', () => {
1515
type: 'json',
1616
data: ['Testing', 'the', 'list', 'output'],
1717
}),
18-
).toBe('["Testing","the","list","output"]');
18+
).toBe('["Testing","the","list","output"]\n');
1919
});
2020
test('table in human and in json format', () => {
2121
// Table
@@ -38,7 +38,7 @@ describe('bin/utils', () => {
3838
],
3939
}),
4040
).toBe(
41-
'[{"key1":"value1","key2":"value2"},{"key1":"data1","key2":"data2"}]',
41+
'[{"key1":"value1","key2":"value2"},{"key1":"data1","key2":"data2"}]\n',
4242
);
4343
});
4444
test('dict in human and in json format', () => {
@@ -61,6 +61,6 @@ describe('bin/utils', () => {
6161
type: 'json',
6262
data: { key1: 'value1', key2: 'value2' },
6363
}),
64-
).toBe('{"key1":"value1","key2":"value2"}');
64+
).toBe('{"key1":"value1","key2":"value2"}\n');
6565
});
6666
});

0 commit comments

Comments
 (0)