js-must icon indicating copy to clipboard operation
js-must copied to clipboard

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...

Results 27 js-must issues
Sort by recently updated
recently updated
newest added

Consider this code: ```javascript const test = () => { throw new Error("Hi there"); }; describe("module", () => { it("throws correct error", () => { test.must.throw(Error, "Hello world"); }); });...

This PR adds the actual and expected size for length errors. This is useful when an assert is performed on a large array or string without knowing the length of...

Hi, I noticed that your package is on a version below 1.0.0. Nowadays, npm init initializes the version to 1.0.0 and being below it can be strange and scare people...

Hello. I am a should.js maintainer and everything you described in README was covered in should.js even before must.js was created. Could you please remove should.js parts to do not...

Some tools (like [Visual Studio Code](https://code.visualstudio.com)) can use typescript definitions for code insight and completion. Many popular JS libraries [already have typescript definitions](http://definitelytyped.org). It would be really nice to have...

Hey @moll, I've got a feature request, if you'd be so kind Wouldn't it be brilliant if the `#include` method would match objects agains subset objects? Like for example this:...

hey andri, i thought i'd report this one. if i have two instances of a [thinky](thinky.io) model and then try to compare them against each other with `.eql` like so:...

Hey @moll! I noticed in the `assert` function here: ``` if (!("actual" in opts)) opts.actual = this.actual if (!("caller" in opts)) opts.caller = assert.caller var msg = stringify(this.actual) + "...

Another attempt at fixing #38. Implementation of `permutationOf` is the same as in previous (failed) pull request #40. What's new here is updated tests and `Map` ponyfill for older environments...

I stumbled once into a use case that seems not to be covered by `must` - to assert that a collection (object or array) contains a value satifsying a specific...