Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot bind argument to parameter 'Command' because it is null. #66

Open
rexrob opened this issue May 27, 2021 · 1 comment
Open

Cannot bind argument to parameter 'Command' because it is null. #66

rexrob opened this issue May 27, 2021 · 1 comment

Comments

@rexrob
Copy link

rexrob commented May 27, 2021

Pester 5
PoshSpec 228

When running the following test I get an error

TEST

Describe "sdsjdhs sddhsj sdhsdh shdjshd"{
File C:\workbook\Modules.txt { Should -Exist }
}

ERROR
sdsjdhs sddhsj sdhsdh shdjshd.File 'Modules.txt' Should -Exist 4ms (2ms|2ms)
ParameterBindingValidationException: Cannot bind argument to parameter 'Command' because it is null.
at , C:\Program Files\WindowsPowerShell\Modules\poshspec\2.2.8\Private\Invoke-PoshspecExpression.ps1:18
Tests completed in 40.55s
Tests Passed: 0, Failed: 1, Skipped: 0 NotRun: 0

Appears to be an issue with in Invoke-PoshspecExpression

$InputObject.Expression appears to be null when executed by invoke-expression
Invoke-Expression $InputObject.Expression

This seems to occur with all test function

Please Assist

@rexrob
Copy link
Author

rexrob commented May 27, 2021

PS I really love this module hope we can get it working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant