15 lines
503 B
Markdown
15 lines
503 B
Markdown
|
---
|
||
|
title: Chaijs Assertexpression Message
|
||
|
localeTitle: رسالة تأكيد
|
||
|
---
|
||
|
[param](/users/param) {Mixed} expressionto test for truthiness
|
||
|
|
||
|
* [param](/users/param) {سلسلة} عرض messageto على خطأ
|
||
|
|
||
|
اكتب تعبيرات الاختبار الخاصة بك.
|
||
|
|
||
|
`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/
|