freeCodeCamp/guide/arabic/miscellaneous/chaijs-assertexpression-mes.../index.md

503 B

title localeTitle
Chaijs Assertexpression Message رسالة تأكيد

param {Mixed} expressionto test for truthiness

  • 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/