Skip to content

Commit

Permalink
Update callable JSDoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 15, 2024
1 parent 96ff526 commit 95d7fda
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,19 @@ Assertion.addProperty('true', function () {
});

/**
* TODO
* ### .callable
*
* Asserts that the target a callable function.
*
* expect(console.log).to.be.callable;
*
* A custom error message can be given as the second argument to `expect`.
*
* expect('not a function', 'nooo why fail??').to.be.callable;
*
* @name callable
* @namespace BDD
* @api public
*/
Assertion.addProperty('callable', function () {
const val = flag(this, 'object')
Expand Down

0 comments on commit 95d7fda

Please sign in to comment.