Skip to content

bdwain/setstate-callback-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

facebook/react#11496

Run yarn test to see a test fail that should pass

FAIL src/App.test.js ● should call the callback with {foo: 123, bar: 456}

expect(received).toEqual(expected)

Expected value to equal:
  {"bar": 456, "foo": 123}
Received:
  {}

Difference:

- Expected
+ Received

-Object {
-  "bar": 456,
-  "foo": 123,
-}
+Object {}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published