Skip to content

Commit f509b2b

Browse files
committed
fix lint
1 parent b95bd7b commit f509b2b

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

packages/db-collections/tests/local-storage.test-d.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,17 @@ describe(`LocalStorage collection type resolution tests`, () => {
169169
})
170170

171171
// Verify that the handlers are properly typed
172-
if (options.onInsert) {
173-
expectTypeOf(options.onInsert).parameters.toEqualTypeOf<
174-
[InsertMutationFnParams<ExplicitType>]
175-
>()
176-
}
172+
expectTypeOf(options.onInsert).parameters.toEqualTypeOf<
173+
[InsertMutationFnParams<ExplicitType>]
174+
>()
177175

178-
if (options.onUpdate) {
179-
expectTypeOf(options.onUpdate).parameters.toEqualTypeOf<
180-
[UpdateMutationFnParams<ExplicitType>]
181-
>()
182-
}
176+
expectTypeOf(options.onUpdate).parameters.toEqualTypeOf<
177+
[UpdateMutationFnParams<ExplicitType>]
178+
>()
183179

184-
if (options.onDelete) {
185-
expectTypeOf(options.onDelete).parameters.toEqualTypeOf<
186-
[DeleteMutationFnParams<ExplicitType>]
187-
>()
188-
}
180+
expectTypeOf(options.onDelete).parameters.toEqualTypeOf<
181+
[DeleteMutationFnParams<ExplicitType>]
182+
>()
189183
})
190184

191185
it(`should properly type localStorage-specific configuration options`, () => {

0 commit comments

Comments
 (0)