.should() should fail when only chainer getters supplied #883
Labels
good first issue
Good for newcomers
pkg/driver
This is due to an issue in the packages/driver directory
type: bug
Current behavior:
If user writes
.should( chainer, value )
wherechainer
consists only of a chainer getter (e.g.to
,be
,is
...), the command silently passes.Desired behavior:
Instead, it should throw/fail because it's not a valid assertion. It's the same as if the user wrote
expect( value ).be( value )
which is invalid chai assertion.How to reproduce:
The text was updated successfully, but these errors were encountered: