File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/ra-core/src/dataProvider Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ describe('useCreate', () => {
202
202
203
203
describe ( 'mutationMode' , ( ) => {
204
204
it ( 'when pessimistic, displays result and success side effects when dataProvider promise resolves' , async ( ) => {
205
+ jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } ) ;
205
206
render ( < SuccessCasePessimistic timeout = { 10 } /> ) ;
206
207
screen . getByText ( 'Create post' ) . click ( ) ;
207
208
await waitFor ( ( ) => {
@@ -230,7 +231,7 @@ describe('useCreate', () => {
230
231
expect (
231
232
screen . queryByText ( 'something went wrong' )
232
233
) . not . toBeNull ( ) ;
233
- expect ( screen . queryByText ( 'nothing yet' ) ) . toBeNull ( ) ;
234
+ expect ( screen . queryByText ( 'nothing yet' ) ) . not . toBeNull ( ) ;
234
235
expect ( screen . queryByText ( 'mutating' ) ) . toBeNull ( ) ;
235
236
} ) ;
236
237
} ) ;
You can’t perform that action at this time.
0 commit comments