Skip to content

Commit 9c87828

Browse files
committed
[tests] 100% coverage again
1 parent da1d3bb commit 9c87828

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const arrayFilter = <Value>(
5656
cb: (value: Value) => boolean,
5757
): Value[] => array.filter(cb);
5858

59-
export const arrayClear = <Value>(array: Value[] = [], to?: number): Value[] =>
59+
export const arrayClear = <Value>(array: Value[], to?: number): Value[] =>
6060
array.splice(0, to);
6161

6262
export const arrayPush = <Value>(array: Value[], ...values: Value[]): number =>

src/persisters/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export const createCustomPersister = <
261261
const getStore = (): Store => store;
262262

263263
const destroy = (): Persister<Persist> => {
264-
arrayClear(mapGet(scheduleActions, scheduleId));
264+
arrayClear(mapGet(scheduleActions, scheduleId) as Action[]);
265265
return stopAutoLoad().stopAutoSave();
266266
};
267267

0 commit comments

Comments
 (0)