unexpected
Version:
Extensible BDD assertion toolkit
21 lines (15 loc) • 310 B
Markdown
title: to be non-empty
Asserts that the string is non-empty.
Aliases: `not to be empty`.
```javascript
expect('Hello', 'to be non-empty');
```
In case of a failing expectation you get the following output:
```javascript
expect('', 'to be non-empty');
```
```output
expected '' to be non-empty
```