-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
It'd be nice to just have a single not matcher that runs the chained matcher and fails if that matcher does not throw an error.
For example:
expect(actual).not.toEqual("foo");
Should run toEqual(actual, "foo") and catch any ExpectationError. If one isn't thrown then it should also throw.
The challenge will be what's the right message to display here. If it could just say something like "Expected not to equal ".
However, getting a 100% correct exception message is less important than having a concise not implementation.
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed