Skip to content

Commit

Permalink
test: add missing param to hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernxst committed Jun 22, 2024
1 parent 24ae686 commit 6a10e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/__test__/params.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("Type tests", () => {
test("should infer correct types", () => {
const useQueryParams = createUseQueryParams(schema);

const [params, helpers] = useQueryParams();
const [params, helpers] = useQueryParams(window.location);

expectTypeOf(params.id).toEqualTypeOf<number>();
expectTypeOf(params.q).toEqualTypeOf<string | undefined>();
Expand Down

0 comments on commit 6a10e42

Please sign in to comment.