diff --git a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js b/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js index 2d35d656f611bf..e634d3949472fc 100644 --- a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js +++ b/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); });