Skip to content

Commit

Permalink
Fix TextContext JsDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed May 12, 2021
1 parent adbd4e0 commit efcb719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-test/src/TestContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const dataProviderDefaultResponse = { data: null };
* @example
* // in a react testing-library test, using jest.
* const utils = render(
* <TestContext initialState={{ admin: { resources: { post: { data: { 1: {id: 1, title: 'foo' } } } } } }}>
* <TestContext initialState={{ admin: { resources: { posts: { data: { 1: {id: 1, title: 'foo' } } } } } }}>
* {({ store }) => {
* dispatchSpy = jest.spyOn(store, 'dispatch');
* return <Show {...defaultShowProps} />
Expand Down

0 comments on commit efcb719

Please sign in to comment.