Skip to content

Pester Error when Function has no parameter #21

@gaelcolas

Description

@gaelcolas

When a command has no parameter, the QA generic test errors as below.
see https://ci.appveyor.com/project/gaelcolas/chocolatey/build/1.0.2

    [-] Error occurred in Describe block 6ms
      RuntimeException: You cannot call a method on a null-valued expression.
      at <ScriptBlock>, C:\projects\chocolatey\chocolatey\tests\QA\module.tests.ps1: line 77
      at <ScriptBlock>, C:\projects\chocolatey\chocolatey\tests\QA\module.tests.ps1: line 77
      at DescribeImpl, C:\projects\chocolatey\BuildOutput\modules\Pester\4.0.8\Functions\Describe.ps1: line 161

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions