Permalink
Browse files

RN: Fix deepFreezeAndThrowOnMutationInDev-test for Node v8.1.0

Reviewed By: raluca-elena

Differential Revision: D5222219

fbshipit-source-id: e34903a506b8e6e0c81e1c21fd9e8e015b25b2d7
  • Loading branch information...
yungsters authored and facebook-github-bot committed Jun 9, 2017
1 parent a1321ae commit 82edc131b0854a191e31f722a50d44c1d299ba8a
Showing with 3 additions and 1 deletion.
  1. +3 −1 Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js
@@ -79,7 +79,9 @@ describe('deepFreezeAndThrowOnMutationInDev', function() {
var o = {oldKey: 'value'};
deepFreezeAndThrowOnMutationInDev(o);
expect(() => { o.newKey = 'value'; })
.toThrowError('Can\'t add property newKey, object is not extensible');
.toThrowError(
/(Cannot|Can't) add property newKey, object is not extensible/
);
expect(o.newKey).toBe(undefined);
});

0 comments on commit 82edc13

Please sign in to comment.