Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(upgrade): unify spec code #12190

Merged
merged 1 commit into from Oct 10, 2016

Conversation

chrisse27
Copy link
Contributor

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x")

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

Tests in upgrade_spec.ts are mostly not making any use of "let" or "const" as well as arrow functions.

What is the new behavior?

This PR intends to unify the usage of "let", "const, and arrow functions across all tests in upgrade_spec.ts.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

  • replace all variable declarations using 'var' by 'const' or 'let'
  • replace es5 function declaration by arrow function where applicable

@chrisse27
Copy link
Contributor Author

chrisse27 commented Oct 9, 2016

@vicb As suggested by you in PR #11411 here is the first attempt to unify the upgrade_spec.

@mhevery actually started using decorators in 6fc4652. I could also refactor the other tests using decorators instead of function calls (separate PR). What's your opinion on this?

- replace all variable declarations using 'var' by 'const' or 'let'
- replace es5 function declaration by arrow function where applicable
@vicb
Copy link
Contributor

vicb commented Oct 9, 2016

Thanks.
+1 for refactoring

@vicb vicb added pr_state: LGTM action: merge The PR is ready for merge by the caretaker labels Oct 9, 2016
@tbosch tbosch merged commit 79e1c7b into angular:master Oct 10, 2016
@chrisse27 chrisse27 deleted the refactor/upgrade_spec_pr branch October 11, 2016 06:42
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants