RN: Fix deepFreezeAndThrowOnMutationInDev-test for Node v8.1.0
Reviewed By: raluca-elena Differential Revision: D5222219 fbshipit-source-id: e34903a506b8e6e0c81e1c21fd9e8e015b25b2d7
This commit is contained in:
parent
a1321aedd7
commit
82edc131b0
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue