Skip to content

Commit 55dffa4

Browse files
committed
Added extra test to 77
1 parent 77a3e96 commit 55dffa4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/09-external-libraries/77-react-query-wrapper.problem.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ type tests = [
4747
// If you pass in an array of numbers in the queryKey, the type of ctx.queryKey
4848
// should be number[]
4949
useApi([1, 2], async (ctx, token) => {
50-
type test = Expect<Equal<typeof ctx.queryKey, number[]>>;
50+
type tests = [
51+
Expect<Equal<typeof ctx.queryKey, number[]>>,
52+
Expect<Equal<typeof token, string>>,
53+
];
5154
});

src/09-external-libraries/77-react-query-wrapper.solution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ type tests = [
4545
// If you pass in an array of numbers in the queryKey, the type of ctx.queryKey
4646
// should be number[]
4747
useApi([1, 2], async (ctx, token) => {
48-
type test = Expect<Equal<typeof ctx.queryKey, number[]>>;
48+
type tests = [
49+
Expect<Equal<typeof ctx.queryKey, number[]>>,
50+
Expect<Equal<typeof token, string>>,
51+
];
4952
});

0 commit comments

Comments
 (0)