> For the complete documentation index, see [llms.txt](https://reloaderlev.gitbook.io/russian-goit-node-js-new-program/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reloaderlev.gitbook.io/russian-goit-node-js-new-program/testirovanie/assertion-library.-should.js.md).

# Assertion library. Should.js

Assertion library - библиотека, которая помогает вам проверить полученные после тестового запуска модуля данные совпадают с ожидаемым результатом.&#x20;

Одной из таких библиотек является [Should.js](http://shouldjs.github.io/)&#x20;

Примеры некоторых методов Should.js

```
const num = 1;

should.exist(num); // num should not be falsey value

num.should.be.Number(); // check if num is of type number

num.should.be.eql(1); // check if num is equal 1
```
