Const
Asserts that the subject is a function.
expect(() => {}, 'to be a function'); // passesexpect('function', 'to be a function'); // fails Copy
expect(() => {}, 'to be a function'); // passesexpect('function', 'to be a function'); // fails
Asserts that the subject is a function.