Skip to content

Commit

Permalink
Merge branch 'add-assert' of https://github.com/pester/Pester into ad…
Browse files Browse the repository at this point in the history
…d-assert
  • Loading branch information
nohwnd committed May 20, 2024
2 parents 29f5cb8 + 1b3f0b5 commit 7931820
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/functions/assert/Equivalence/Should-BeEquivalent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ function Compare-Equivalent {
return
}

v "`$Expected is an object of type $$Expected.GetType(), we will be comparing `$Actual to objects."
v "`$Expected is an object of type $(Format-Nicely2 $Expected.GetType()), we will be comparing `$Actual to objects."
Compare-ObjectEquivalent -Expected $Expected -Actual $Actual -Property $Path -Options $Options
}

Expand Down
4 changes: 2 additions & 2 deletions src/functions/assert/General/Should-HaveType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
.EXAMPLE
```powershell
"hello" | Should-HaveType [String]
1 | Should-HaveType [Int32]
"hello" | Should-HaveType ([String])
1 | Should-HaveType ([Int32])
```
These assertions will pass, because the actual value is of the expected type.
Expand Down
4 changes: 2 additions & 2 deletions src/functions/assert/General/Should-NotHaveType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
.EXAMPLE
```powershell
"hello" | Should-NotHaveType [Int32]
1 | Should-NotHaveType [String]
"hello" | Should-NotHaveType ([Int32])
1 | Should-NotHaveType ([String])
```
These assertions will pass, because the actual value is not of the expected type.
Expand Down

0 comments on commit 7931820

Please sign in to comment.