Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Mar 11, 2024
1 parent 48c0529 commit cc1217d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/api.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ describe('graphql()', () => {

expectTypeOf<FragmentOf<typeof fragment>>().toEqualTypeOf<{
[$tada.fragmentRefs]: {
Fields: $tada.ref;
Fields: 'Todo';
};
}>();

expectTypeOf<ResultOf<typeof query>>().toEqualTypeOf<{
todos:
| ({
[$tada.fragmentRefs]: {
Fields: $tada.ref;
Fields: 'Todo';
};
} | null)[]
| null;
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('declare setupSchema configuration', () => {
id: string | number;
complete: boolean | null;
[$tada.fragmentRefs]: {
TodoData: $tada.ref;
TodoData: 'Todo';
};
} | null)[] | null;
}>();
Expand Down Expand Up @@ -160,7 +160,7 @@ describe('initGraphQLTada configuration', () => {
id: string | number;
complete: boolean | null;
[$tada.fragmentRefs]: {
TodoData: $tada.ref;
TodoData: 'Todo';
};
} | null)[] | null;
}>();
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/namespace.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('getFragmentsOfDocumentsRec', () => {
};
[$tada.ref]: {
[$tada.fragmentRefs]: {
TodoFragment: $tada.ref;
TodoFragment: 'Todo';
};
};
};
Expand Down

0 comments on commit cc1217d

Please sign in to comment.