A module that is useful for testing whether you've mutated an object. Use it with redux when testing your reducers to ensure you don't ever mutate an object in a reducer but always return a new object.
This lib is intended for use only during development, specifically testing.
Don't use this in production!
npm install --save-dev object-invariant-test-helper
;const toAdd = 2;const expectedState = num: 3;;
If you want to provide your own
isImmutable function, you may:
;let objectInvariantTestHelper = ;