How to use the Assertion function from should

Find comprehensive JavaScript should.Assertion code examples handpicked from public code repositorys.

8
9
10
11
12
13
14
15
16
17

/**
 * Auxiliary constants.
 */

const Assertion = should.Assertion.prototype;
const assertions = Object.keys(Assertion);
const chains = Object.keys(Assertion).filter(key => typeof Assertion[key] !== 'function');

/**
fork icon0
star icon2
watch icon10