Skip to content

Commit

Permalink
Merge pull request #6276 from WiXSL/jsdocs-testcontext2
Browse files Browse the repository at this point in the history
[Doc] Fix TestContext JsDocs
  • Loading branch information
djhi committed May 17, 2021
2 parents b29e512 + efcb719 commit 180757c
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 180757c

Please sign in to comment.