Skip to content

(#372) Fix issues in AboutEnumeration - #373

Merged
vexx32 merged 5 commits into
masterfrom
Bugfix/AboutEnumeration
Mar 6, 2020
Merged

vexx32 merged 5 commits into
masterfrom
Bugfix/AboutEnumeration

Conversation

@vexx32

@vexx32 vexx32 commented Mar 6, 2020 •

Copy link
Copy Markdown
Collaborator

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.

vexx32 added 5 commits March 5, 2020 21:52
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 requested a review from steviecoaster as a code owner March 6, 2020 04:05
@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.

1 participant