15 lines
642 B
Markdown
15 lines
642 B
Markdown
---
|
||
title: Chaijs Assertexpression Message
|
||
localeTitle: Сообщение о сокращении Chaijs
|
||
---
|
||
[@param](/users/param) {Смешанное} выражение для проверки правдоподобия
|
||
|
||
* [@param](/users/param) {String} отображение сообщения об ошибке
|
||
|
||
Напишите свои собственные тестовые выражения.
|
||
```
|
||
assert('foo' !== 'bar', 'foo is not bar');
|
||
assert(Array.isArray(<a href='http://chaijs.com/api/assert/' target='_blank' rel='nofollow'>]), 'empty arrays are arrays');
|
||
```
|
||
|
||
подробности: \[http://chaijs.com/api/assert/ |