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

(#372) Fix issues in AboutEnumeration #373

Merged
merged 5 commits into from Mar 6, 2020
Merged

Conversation

vexx32
Copy link
Owner

@vexx32 vexx32 commented Mar 6, 2020

PR Summary

Fixed a few issues in the AboutEnumerations topic and added a regression test to catch nested It blocks in future (which aren't legal Pester syntax anyway).

Context

Partial fix for #372

Changes

  • Added regression test and verified that the existing issue in the file failed the test.
  • Did a quick once-over for the file in terms of formatting and commentary.
  • Fixed outstanding issues in the AboutEnumerations file.

Checklist

  • Pull Request has a meaningful title.
  • Summarised changes.
  • Pull Request is ready to merge & is not WIP.
  • Added tests / only testable interactively.
    • Make sure you add a new test if old tests do not effectively test the code changed.
  • Added documentation / opened issue to track adding documentation at a later date.

Refactor slightly, match file more to current style.

Rename a few tests to make more sense.
We can test file ASTs during our static analysis checks.

Added a test to check we don't have any nested It blocks in the file.
Using a raw scriptblock will break the parser in earlier versions.

Fix is to define it as a string and parse that just before execution.
@vexx32 vexx32 added PR-Needs-Review 🔍 Let's take a closer look! Category-Koans Invoking the Great Doubt Category-Tests ✅ Pertaining to tests for the module functions. labels Mar 6, 2020
@vexx32 vexx32 removed the PR-Needs-Review 🔍 Let's take a closer look! label Mar 6, 2020
@vexx32 vexx32 merged commit 025c095 into master Mar 6, 2020
@vexx32 vexx32 deleted the Bugfix/AboutEnumeration branch March 6, 2020 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Koans Invoking the Great Doubt Category-Tests ✅ Pertaining to tests for the module functions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant