Skip to content

Commit

Permalink
refactor: correct minor mistakes picked up by coderabbitai in nitpick…
Browse files Browse the repository at this point in the history
… comments (#1887)

Co-authored-by: Simon Zimmerman <[email protected]>
  • Loading branch information
roomman and Simon Zimmerman authored Nov 27, 2024
1 parent 39f13e7 commit a747d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ describe('Tanstack Query React Hooks V5 Test', () => {
expect(userResult.current.data).toHaveLength(1);
});

// pupulate the cache with a category
// populate the cache with a category
const categoryData: any[] = [{ id: '1', name: 'category1', posts: [] }];

nock(BASE_URL)
Expand Down Expand Up @@ -501,7 +501,7 @@ describe('Tanstack Query React Hooks V5 Test', () => {
it('optimistic update with optional one-to-many relationship', async () => {
const { queryClient, wrapper } = createWrapper();

// populate the cache with a post, with an optional category relatonship
// populate the cache with a post, with an optional category relationship
const postData: any = {
id: '1',
title: 'post1',
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/tanstack-query/tests/test-model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const modelMeta: ModelMeta = {
type: 'Category',
name: 'category',
isDataModel: true,
isOptional: true,
isRelationOwner: true,
backLink: 'posts',
foreignKeyMapping: { id: 'categoryId' },
Expand Down

0 comments on commit a747d95

Please sign in to comment.