busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

referee does not expose `deepEqual` any more #398

Closed davidaurelio closed 8 years ago

davidaurelio commented 10 years ago

buster-assertions once exposed a deepEqual utility function, which was useful to create custom assertions. It has since moved to samsam.

It would be cool to expose a set of such helpers so that is not necessary to pull in all these dependencies just to write some assertions.

I.e. referee.match is still there.

dwittner commented 10 years ago

I am not sure, i really understand your problem. What do you mean with "so that is not necessary to pull in all these dependencies..."? Can you provide an example to make it clearer for me?

dominykas commented 10 years ago

referee exposes assert.equals, which in turn calls samsam.deepEqual - so the functionality is there and you can always use require('samsam').deepEqual - I'm not sure I understand the problem either.