You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
toBeEmpty fails when checked object is not defined, but matcher when used in with .not does not fail if checked node is undefined.
describe("toBeEmpty() bug with undefined",function(){it("works correctly when requiring being empty",function(){expect(undefined).toBeEmpty()// this fails with message "undefined is not empty"})it("behaves unexpectedly when using .not",function(){expect(undefined).not.toBeEmpty()// this does not fail})})
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
toBeEmpty fails when checked object is not defined, but matcher when used in with .not does not fail if checked node is undefined.
The text was updated successfully, but these errors were encountered: