Skip to content

react-test-renderer: convert vars into let/const#11731

Merged
gaearon merged 1 commit intofacebook:masterfrom
raphamorim:react-test-renderer/no-more-vars
Dec 1, 2017
Merged

react-test-renderer: convert vars into let/const#11731
gaearon merged 1 commit intofacebook:masterfrom
raphamorim:react-test-renderer/no-more-vars

Conversation

@raphamorim
Copy link
Copy Markdown
Contributor

@raphamorim raphamorim commented Nov 30, 2017

Ref: #11699

'use strict';

var ReactTestRenderer = require('./src/ReactTestRenderer');
const ReactTestRenderer = require('./src/ReactTestRenderer');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearon question: files with explict strict mode, should keep var right?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this one is fine.

@gaearon gaearon merged commit 2a1b1f3 into facebook:master Dec 1, 2017
@raphamorim raphamorim deleted the react-test-renderer/no-more-vars branch December 1, 2017 00:07
NMinhNguyen referenced this pull request in enzymejs/react-shallow-renderer Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants