You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[-] Package2 property 'version' for 'Orca' should be '3.1.3790.0000' 67.04s
Expected: {3.1.3790.0000}
But was: {}
1: Get-InstalledPackage -appName 'Orca' -appVersion version -ErrorAction SilentlyContinue | Select-Object -ExpandProperty 'versio
n' | should be '3.1.3790.0000'
at , : line 1
at , C:\Program Files\WindowsPowerShell\Modules\Poshspec\2.1.12\Private\Invoke-PoshspecExpression.ps1: line 12
Please check and let me know what went wrong . when i debugged it ,it always failed in the below line at Invoke-PoshspecExpression.ps1 file
Invoke-Expression $InputObject.Expression
The text was updated successfully, but these errors were encountered:
I am using Package resource for my infrastructure validation. As my environment has only powershell v4, Get-package function was not there.
I have written a module named Poshspechelper in my machine and written a custom function
Get-InstalledPackage. The function is given below.
When i run this with pester like below , it worked as expected. .
But when i call this in package.ps1 file instead of Get-package (like given below) , i am getting error given below the code.
Please check and let me know what went wrong . when i debugged it ,it always failed in the below line at Invoke-PoshspecExpression.ps1 file
Invoke-Expression $InputObject.Expression
The text was updated successfully, but these errors were encountered: