Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 210 Bytes

empty.md

File metadata and controls

9 lines (6 loc) · 210 Bytes

empty

  • to[.not].be.empty

The empty assertion evaluates to true for empty strings, arrays or objects (as well as null and undefined):

expect([]).to.be.empty();
expect({}).to.be.empty();