Skip to content

Commit 2d64cfc

Browse files
committed
Add comments
1 parent edcf2cf commit 2d64cfc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tests/Private/GetCommandAlias.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Describe "GetCommandAlias" {
5757

5858
Context "Parsing Code For New-Alias" {
5959
BeforeAll {
60+
# Must write a mock module script file and parse it to replicate real conditions
6061
"
6162
New-Alias -Name 'Alias1' -Value 'Write-Verbose'
6263
New-Alias -Value 'Write-Verbose' -Name 'Alias2'
@@ -81,6 +82,7 @@ Describe "GetCommandAlias" {
8182

8283
Context "Parsing Code For Set-Alias" {
8384
BeforeAll {
85+
# Must write a mock module script file and parse it to replicate real conditions
8486
"
8587
Set-Alias -Name 'Alias1' -Value 'Write-Verbose'
8688
Set-Alias -Value 'Write-Verbose' -Name 'Alias2'
@@ -105,6 +107,7 @@ Describe "GetCommandAlias" {
105107

106108
Context "Parsing Code For New-Alias" {
107109
BeforeAll {
110+
# Must write a mock module script file and parse it to replicate real conditions
108111
"
109112
function Get-Something {
110113
param()
@@ -133,6 +136,7 @@ Describe "GetCommandAlias" {
133136

134137
Context "Parsing Code For *-Alias Using Global Scope" {
135138
BeforeAll {
139+
# Must write a mock module script file and parse it to replicate real conditions
136140
"
137141
Set-Alias -Name 'Alias1' -Value 'Write-Verbose' -Scope Global
138142
Set-Alias -Name 'Alias2' -Value 'Write-Verbose' -Scope 'Global'
@@ -169,6 +173,7 @@ Describe "GetCommandAlias" {
169173

170174
Context "Parsing Code For Remove-Alias" {
171175
BeforeAll {
176+
# Must write a mock module script file and parse it to replicate real conditions
172177
"
173178
New-Alias -Name 'Alias1' -Value 'Write-Verbose'
174179
New-Alias -Name 'Alias2' -Value 'Write-Verbose'

0 commit comments

Comments
 (0)