Skip to content

Commit 742fef1

Browse files
authored
Fix typos using the typos tool (#2674)
The changes were manually reviewed before committing.
1 parent 86c333d commit 742fef1

17 files changed

Lines changed: 46 additions & 46 deletions

docs/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
7474
## 4.7.0-beta1 (February 23, 2019)
7575

7676
- Add alias for extension-less external commands on Windows [#1252](https://github.com/pester/Pester/pull/1252)
77-
- Add use alises in mock ParameterFilter [#1240](https://github.com/pester/Pester/pull/1240)
77+
- Add use aliases in mock ParameterFilter [#1240](https://github.com/pester/Pester/pull/1240)
7878
- Fix creating mocks of Get-Module [#1233](https://github.com/pester/Pester/pull/1233)
7979
- Fix Set-ItResult not failing in Pester strict mode [#1225](https://github.com/pester/Pester/pull/1225)
8080
- Remove Invoke-GherkinStep from exported functions [#1229](https://github.com/pester/Pester/pull/1229)
@@ -216,7 +216,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
216216
- Syntax for the Should operator updated in Pester tests itself, an about\_\* documentation, examples [#910](https://github.com/pester/Pester/issues/910)
217217
- Remove progress to make execution faster and fix linux formatting [#938](https://github.com/pester/Pester/issues/938)
218218
- Invoke-Pester -Strict fails with internal pester error [#886](https://github.com/pester/Pester/issues/886)
219-
due to the prefered syntax change introduced in Pester v4 [#903](https://github.com/pester/Pester/issues/903)
219+
due to the preferred syntax change introduced in Pester v4 [#903](https://github.com/pester/Pester/issues/903)
220220
- Fix Gherkin for Linux [#937](https://github.com/pester/Pester/issues/937) and PS2 [#942](https://github.com/pester/Pester/issues/942)
221221

222222
## 4.0.8 (September 15, 2017)
@@ -263,7 +263,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
263263
## 4.0.3-rc (March 22, 2017)
264264

265265
- Fix context and describe in test results [#755](https://github.com/pester/Pester/issues/755)
266-
- Fix mocking functions in two consequitive contexts [#744](https://github.com/pester/Pester/issues/744)
266+
- Fix mocking functions in two consecutive contexts [#744](https://github.com/pester/Pester/issues/744)
267267
- Fix import localized data on non en-US systems [#711](https://github.com/pester/Pester/issues/711)
268268
- Fix IncludeVSCodeMarker [#726](https://github.com/pester/Pester/issues/726)
269269
- Fix should be when working with distinct types [#704](https://github.com/pester/Pester/issues/704)
@@ -290,7 +290,7 @@ Newer releases are tracked only in [GitHub releases](https://github.com/pester/P
290290
- Add colors to summary
291291
- (experimental) Add nested Describe and Context
292292

293-
- Deprecated: Quiet parameter is depracated, use -Show none
293+
- Deprecated: Quiet parameter is deprecated, use -Show none
294294
- Deprecated: New-TestDriveItem as most of the people do not even know it exists
295295
- Gone: OutputXml is gone, it was deprecated before, use -OutputFormat and -OutputFile
296296

src/Main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function Set-ShouldOperatorHelpMessage {
126126
Help message for switch-parameter for the operator in Should.
127127
.NOTES
128128
Internal function as it's only useful for built-in Should operators/assertion atm. to improve online docs.
129-
Can be merged into Add-ShouldOperator later if we'd like to make it pulic and include value in Get-ShouldOperator
129+
Can be merged into Add-ShouldOperator later if we'd like to make it public and include value in Get-ShouldOperator
130130
131131
https://github.com/pester/Pester/issues/2335
132132
#>
@@ -1080,7 +1080,7 @@ function Convert-PesterLegacyParameterSet ($BoundParameters) {
10801080
}
10811081

10821082
# Remove auto null-variables for undefined parameters in set
1083-
# TODO: Why are these special? Only removed when not defined, but they're never used. Other are only removed when expliclity set
1083+
# TODO: Why are these special? Only removed when not defined, but they're never used. Other are only removed when explicitly set
10841084
if (-not $BoundParameters.ContainsKey('Strict')) {
10851085
& $SafeCommands['Get-Variable'] 'Strict' -Scope Local | Remove-Variable
10861086
}

src/Pester.Runtime.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ function PostProcess-DiscoveredBlock {
19911991
}
19921992

19931993
# traverses the block structure after a block was found and
1994-
# link childs to their parents, filter blocks and tests to
1994+
# link children to their parents, filter blocks and tests to
19951995
# determine which should run, and mark blocks and tests
19961996
# as first or last to know when one time setups & teardowns should run
19971997
$b.IsRoot = $b -eq $RootBlock

src/csharp/Pester/RunConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public RunConfiguration(IDictionary configuration) : this()
7070
PassThru = new BoolOption("Return result object to the pipeline after finishing the test run.", false);
7171
SkipRun = new BoolOption("Runs the discovery phase but skips run. Use it with PassThru to get object populated with all tests.", false);
7272
SkipRemainingOnFailure = new StringOption("Skips remaining tests after failure for selected scope, options are None, Run, Container and Block.", "None");
73-
FailOnNullOrEmptyForEach = new BoolOption("Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overriden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.", true);
73+
FailOnNullOrEmptyForEach = new BoolOption("Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overridden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.", true);
7474
}
7575

7676
public StringArrayOption Path

src/csharp/Pester/TestResultConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static TestResultConfiguration ShallowClone(TestResultConfiguration confi
3434
return Cloner.ShallowClone(configuration);
3535
}
3636

37-
public TestResultConfiguration() : base("Export options to output Pester's testresult to knwon file formats like NUnit and JUnit XML.")
37+
public TestResultConfiguration() : base("Export options to output Pester's testresult to known file formats like NUnit and JUnit XML.")
3838
{
3939
Enabled = new BoolOption("Enable TestResult.", false);
4040
OutputFormat = new StringOption("Format to use for test result report. Possible values: NUnitXml, NUnit2.5, NUnit3 or JUnitXml", "NUnitXml");

src/en-US/about_PesterConfiguration.help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ SECTIONS AND OPTIONS
6969
Type: string
7070
Default value: 'None'
7171

72-
FailOnNullOrEmptyForEach: Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overriden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.
72+
FailOnNullOrEmptyForEach: Fails discovery when -ForEach is provided $null or @() in a block or test. Can be overridden for a specific Describe/Context/It using -AllowNullOrEmptyForEach.
7373
Type: bool
7474
Default value: $true
7575

src/functions/Coverage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ function Start-TraceScript ($Breakpoints) {
13351335

13361336
if (-not $registered) {
13371337

1338-
# detect if code coverage is enabled throuh Pester tracer, and in that case just add us as a second tracer
1338+
# detect if code coverage is enabled through Pester tracer, and in that case just add us as a second tracer
13391339
if (1 -eq $env:PESTER_CC_IN_CC -and [Pester.Tracing.Tracer]::ShouldRegisterTracer($tracer, <# overwrite: #> $false)) {
13401340
$patched = $false
13411341
$registered = $true

src/functions/Environment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Get-TempDirectory {
3535
function Get-TempRegistry {
3636
# The Pester root key is created once and then stays in place.
3737
# In TestDrive we use system Temp folder, but such key exists for registry so we create our own.
38-
# Removing it would cleanup remaining keys from cancelled runs, but could break parallell or nested runs, so leaving it
38+
# Removing it would cleanup remaining keys from cancelled runs, but could break parallel or nested runs, so leaving it
3939

4040
$pesterTempRegistryRoot = 'Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Pester'
4141
try {

src/functions/Mock.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ function Should-InvokeInternal {
450450
BoundParameters = $historyEntry.BoundParams
451451
ArgumentList = $historyEntry.Args
452452
Metadata = $ContextInfo.Hook.Metadata
453-
# do not use the callser session state from the hook, the parameter filter
453+
# do not use the caller session state from the hook, the parameter filter
454454
# on Should -Invoke can come from a different session state if inModuleScope is used to
455455
# wrap it. Use the caller session state to which the scriptblock is bound
456456
SessionState = $SessionState

src/functions/Pester.SessionState.Mock.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ function Invoke-Mock {
10371037
# because it does not contain whitespace, but if someone mistypes we won't be able to fix it
10381038
# to be empty string in the below condition.
10391039
$TargetModule = $ModuleName
1040-
$targettingAModule = -not [string]::IsNullOrWhiteSpace($TargetModule)
1040+
$targetingAModule = -not [string]::IsNullOrWhiteSpace($TargetModule)
10411041

10421042
$getBehaviorMessage = if ($PesterPreference.Debug.WriteDebugMessages.Value) {
10431043
# output scriptblock that we can call later
@@ -1052,7 +1052,7 @@ function Invoke-Mock {
10521052
}
10531053

10541054
if ($PesterPreference.Debug.WriteDebugMessages.Value) {
1055-
Write-PesterDebugMessage -Scope Mock -Message "Filtering behaviors for command $CommandName, for target module $(if ($targettingAModule) { $TargetModule } else { '$null' }) (Showing all behaviors for this command, actual filtered list is further in the log, look for 'Filtered parametrized behaviors:' and 'Filtered default behaviors:'):"
1055+
Write-PesterDebugMessage -Scope Mock -Message "Filtering behaviors for command $CommandName, for target module $(if ($targetingAModule) { $TargetModule } else { '$null' }) (Showing all behaviors for this command, actual filtered list is further in the log, look for 'Filtered parametrized behaviors:' and 'Filtered default behaviors:'):"
10561056
}
10571057

10581058
$moduleBehaviors = [System.Collections.Generic.List[Object]]@()
@@ -1092,7 +1092,7 @@ function Invoke-Mock {
10921092
else {
10931093
# not the targeted module, skip it
10941094
if ($PesterPreference.Debug.WriteDebugMessages.Value) {
1095-
Write-PesterDebugMessage -Scope Mock -Message "Behavior is not from the target module $(if ($targettingAModule) { $TargetModule } else { '$null' }), skipping it:`n$(& $getBehaviorMessage $b)"
1095+
Write-PesterDebugMessage -Scope Mock -Message "Behavior is not from the target module $(if ($targetingAModule) { $TargetModule } else { '$null' }), skipping it:`n$(& $getBehaviorMessage $b)"
10961096
}
10971097
}
10981098
}
@@ -1101,11 +1101,11 @@ function Invoke-Mock {
11011101
# keep the first found (the last one defined)
11021102
if ($null -eq $nonModuleDefaultBehavior) {
11031103
$nonModuleDefaultBehavior = $b
1104-
if ($targettingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
1104+
if ($targetingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
11051105
Write-PesterDebugMessage -Scope Mock -Message "Behavior is a default behavior from script scope, saving it to use as a fallback if default behavior for module $TargetModule is not found:`n$(& $getBehaviorMessage $b)"
11061106
}
11071107

1108-
if (-not $targettingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
1108+
if (-not $targetingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
11091109
Write-PesterDebugMessage -Scope Mock -Message "Behavior is a default behavior from script scope, saving it:`n$(& $getBehaviorMessage $b)"
11101110
}
11111111
}
@@ -1116,11 +1116,11 @@ function Invoke-Mock {
11161116
}
11171117
}
11181118
else {
1119-
if ($targettingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
1119+
if ($targetingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
11201120
Write-PesterDebugMessage -Scope Mock -Message "Behavior is a parametrized behavior from script scope, skipping it. (Parametrized script scope behaviors are not used as fallback for module scoped mocks.):`n$(& $getBehaviorMessage $b)"
11211121
}
11221122

1123-
if (-not $targettingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
1123+
if (-not $targetingAModule -and $PesterPreference.Debug.WriteDebugMessages.Value) {
11241124
Write-PesterDebugMessage -Scope Mock -Message "Behavior is a parametrized behavior from script scope, adding it to non-module parametrized behavior list:`n$(& $getBehaviorMessage $b)"
11251125
}
11261126

@@ -1134,7 +1134,7 @@ function Invoke-Mock {
11341134
# then the default mock for Remove-Item should be effective.
11351135

11361136
# using @() to always get array. This avoids null error in Invoke-MockInternal when no behaviors where found (if-else unwraps the lists)
1137-
$behaviors = @(if ($targettingAModule) {
1137+
$behaviors = @(if ($targetingAModule) {
11381138
# we have default module behavior add it to the filtered behaviors if there are any
11391139
if ($null -ne $moduleDefaultBehavior) {
11401140
$moduleBehaviors.Add($moduleDefaultBehavior)
@@ -1180,7 +1180,7 @@ function Invoke-Mock {
11801180
}
11811181
}
11821182
$message = if ($null -ne $default) { & $getBehaviorMessage $b } else { '$null' }
1183-
$fallBack = if ($null -ne $default -and $targettingAModule -and [string]::IsNullOrEmpty($b.ModuleName) ) { " (fallback to script scope default behavior)" } else { $null }
1183+
$fallBack = if ($null -ne $default -and $targetingAModule -and [string]::IsNullOrEmpty($b.ModuleName) ) { " (fallback to script scope default behavior)" } else { $null }
11841184
Write-PesterDebugMessage -Scope Mock -Message "Filtered default behavior$($fallBack):`n$message"
11851185
}
11861186

0 commit comments

Comments
 (0)