Const
Asserts that the subject is truthy (not false, 0, '', null, undefined, or NaN).
expect('hello', 'to be truthy'); // passesexpect('', 'to be truthy'); // fails Copy
expect('hello', 'to be truthy'); // passesexpect('', 'to be truthy'); // fails
Asserts that the subject is truthy (not false, 0, '', null, undefined, or NaN).