Skip to content

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant