Skip to content

Remove static analysis warning for using a module alias being referenced in a test #414

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
merged 1 commit into from
Aug 22, 2023

Conversation

HowardWolosky
Copy link
Contributor

Description

I generally don't like aliases being used (neither does PSScriptAnalyzer), but in this case, New-GitHubDeploymentEnvironment was writting to be able to behave as Set-GitHubDeploymentEnvironment as well, and we should be testing it the way that a user would likely be calling it.

Checklist

  • You actually ran the code that you just wrote, especially if you did just "one last quick change".
  • [ ] Comment-based help added/updated, including examples.
  • Static analysis is reporting back clean.
  • [ ] New/changed code adheres to our coding guidelines.
  • [ ] Formatters were created for any new types being added.
  • [ ] New/changed code continues to support the pipeline.
  • [ ] Changes to the manifest file follow the manifest guidance.
  • Unit tests were added/updated and are all passing. See testing guidelines. This includes making sure that all pipeline input variations have been covered.
  • [ ] Relevant usage examples have been added/updated in USAGE.md.
  • [ ] If desired, ensure your name is added to our Contributors list

…ced in a test

I generally don't like aliases being used (neither does PSScriptAnalyzer),
but in this case, `New-GitHubDeploymentEnvironment` was writting to
be able to behave as `Set-GitHubDeploymentEnvironment` as well, and
we should be testing it the way that a user would likely be calling it.
@HowardWolosky HowardWolosky added the tests A change related to the Pester tests for the module. label Aug 22, 2023
@HowardWolosky HowardWolosky merged commit 482fe23 into microsoft:master Aug 22, 2023
@HowardWolosky HowardWolosky deleted the user/howardwo/fixSA branch August 22, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests A change related to the Pester tests for the module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant