moll / js-must

An assertion library for JavaScript and Node.js with a friendly BDD syntax (awesome.must.be.true()). It ships with many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good stuff and well tested.
Other
336 stars 35 forks source link

added one more definition for use with typescript, when aliasing must as demand #76

Closed klikas closed 3 years ago

klikas commented 6 years ago

When using typescript compiler, if we want to alias must as demand, following the example here:

https://github.com/moll/js-must/blob/master/doc/API.md#mustactual-message-

Typescript complains that there is no signature for must that expects 2 arguments.

This commit fixes that.

chrisgedrim commented 6 years ago

Fixes #75

moll commented 3 years ago

Thank you both for your help! I've merged it in and went ahead and removed the other definition as per @chrisgedrim's suggestion.