Skip to content

Commit 86e4ab5

Browse files
committed
[test] 100% coverage
1 parent eed8ef3 commit 86e4ab5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

coverage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tests":7213,"assertions":32128,"lines":{"total":2361,"covered":2361,"skipped":0,"pct":100},"statements":{"total":2558,"covered":2558,"skipped":0,"pct":100},"functions":{"total":1023,"covered":1022,"skipped":0,"pct":99.9},"branches":{"total":900,"covered":894,"skipped":0,"pct":99.33},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
1+
{"tests":7213,"assertions":32128,"lines":{"total":2361,"covered":2361,"skipped":0,"pct":100},"statements":{"total":2558,"covered":2558,"skipped":0,"pct":100},"functions":{"total":1022,"covered":1022,"skipped":0,"pct":100},"branches":{"total":893,"covered":893,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}

src/queries/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const createQueries = getCreateFunction((store: Store): Queries => {
142142
delStoreListeners,
143143
] = getDefinableFunctions<[Build, IdMap<ParamValue>], undefined>(
144144
store,
145-
() => [() => {}, mapNew()],
145+
() => [] as any,
146146
getUndefined,
147147
addListener,
148148
callListeners,

src/ui-react/hooks.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ const useSetCallback = <Parameter, Thing, StoreOrQueries>(
430430
getDeps: DependencyList = EMPTY_ARRAY,
431431
then: (obj: StoreOrQueries, thing: Thing) => void = getUndefined,
432432
thenDeps: DependencyList = EMPTY_ARRAY,
433-
methodPrefix: string = EMPTY_STRING,
433+
methodPrefix?: string,
434434
...args: (Id | GetId<Parameter>)[]
435435
): ParameterizedCallback<Parameter> =>
436436
useCallback(
@@ -462,9 +462,9 @@ const useStoreSetCallback = <Parameter, Thing>(
462462
storeOrStoreId: StoreOrStoreId | undefined,
463463
settable: string,
464464
get: (parameter: Parameter, store: Store) => Thing,
465-
getDeps: DependencyList = EMPTY_ARRAY,
466-
then: (store: Store, thing: Thing) => void = getUndefined,
467-
thenDeps: DependencyList = EMPTY_ARRAY,
465+
getDeps?: DependencyList,
466+
then?: (store: Store, thing: Thing) => void,
467+
thenDeps?: DependencyList,
468468
...args: (Id | GetId<Parameter>)[]
469469
): ParameterizedCallback<Parameter> =>
470470
useSetCallback(
@@ -482,9 +482,9 @@ const useQueriesSetCallback = <Parameter, Thing>(
482482
queriesOrQueriesId: QueriesOrQueriesId | undefined,
483483
settable: string,
484484
get: (parameter: Parameter, queries: Queries) => Thing,
485-
getDeps: DependencyList = EMPTY_ARRAY,
486-
then: (queries: Queries, thing: Thing) => void = getUndefined,
487-
thenDeps: DependencyList = EMPTY_ARRAY,
485+
getDeps?: DependencyList,
486+
then?: (queries: Queries, thing: Thing) => void,
487+
thenDeps?: DependencyList,
488488
...args: (Id | GetId<Parameter>)[]
489489
): ParameterizedCallback<Parameter> =>
490490
useSetCallback(

0 commit comments

Comments
 (0)