Skip to content

Remove 'verify.fileAfterCodeFix', use 'verify.codeFix' #28110

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

Merged
1 commit merged into from
Oct 24, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 24, 2018

There's no reason to have two separate methods for testing the same thing, and verify.codeFix strictly tests more, since it tests the description and whitespace.

@ghost ghost requested a review from sandersn October 24, 2018 19:58
verify.fileAfterCodeFix(
verify.codeFix({
description: "Infer parameter types from usage",
index: 2,
Copy link
Member

Choose a reason for hiding this comment

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

If you don't know the index, how can I figure out the index? With fileAfterCodeFix, leaving off the last two arguments prints out a list of provided code fixes.

Copy link
Author

Choose a reason for hiding this comment

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

verify.codeFix does the same thing -- using the same (duplicated) code.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

One usability question, although I think it's a good change overall.

@ghost ghost merged commit 854f20e into master Oct 24, 2018
@ghost ghost deleted the rm_fileAfterCodeFix branch October 24, 2018 22:34
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant