Skip to content

Should-BeFasterThan: Missing parameter Because #2616

@johlju

Description

@johlju

Checklist

What is the issue?

The command Should-BeFasterThan does have the parameter Because in the comment-based help, but it is missing as an actual parameter.

.PARAMETER Because
The reason why the actual value should be faster than the expected value.

param (
[Parameter(Position = 1, ValueFromPipeline = $true)]
$Actual,
[Parameter(Position = 0)]
$Expected
)

Actually the same issue exist for all the "time" commands: https://github.com/pester/Pester/tree/main/src/functions/assert/Time

Expected Behavior

Able to use Because.

Steps To Reproduce

n/a

Describe your environment

n/a

Possible Solution?

Just adding parameter will do, as the code exist in the function to use it. 🤔

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions