Skip to content

Commit e835c6d

Browse files
watanabeyufacebook-github-bot
authored andcommitted
Replace var to const in Libraries/Utilities/deepFreezeAndThrowOnMutationInDev-test.js (#22110)
Summary: Replaces the keywords var to const in Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js - [x] Check npm run flow - [x] Check npm run flow-check-ios - [x] Check npm run flow-check-android [GENERAL] [ENHANCEMENT] [Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js] - replace var Pull Request resolved: #22110 Differential Revision: D12919284 Pulled By: TheSavior fbshipit-source-id: 4a3a3f4c49665c538ed5f38f3cc2142d40ac4d55
1 parent 6ebee18 commit e835c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('deepFreezeAndThrowOnMutationInDev', function() {
2828

2929
it('should not throw on object without prototype', () => {
3030
__DEV__ = true;
31-
var o = Object.create(null);
31+
const o = Object.create(null);
3232
o.key = 'Value';
3333
expect(() => deepFreezeAndThrowOnMutationInDev(o)).not.toThrow();
3434
});
@@ -134,7 +134,7 @@ describe('deepFreezeAndThrowOnMutationInDev', function() {
134134
expect(o.key1.key2).toBe('newValue');
135135
});
136136

137-
it("shouldn't recurse infinitely", () => {
137+
it('shouldn\'t recurse infinitely', () => {
138138
__DEV__ = true;
139139
const o = {};
140140
o.circular = o;

0 commit comments

Comments
 (0)