1.0.0 • Published 3 years ago

very-assertive v1.0.0

Weekly downloads
39
License
-
Repository
github
Last release
3 years ago

very-assertive

Build Status

A collection of node.js should library assertions

using

very-assertive mixes in with other should assertions, therefore all you need to do is require it...

npm install very-assertive

require('very-assertive')

equalObject

print detailed info on differences between JS objects... handy for large object comparisons.

const one = {nice: 'one'};
const two = {nice: 'two'};

one.should.equalObject(one);
one.should.not.equalObject(two);

equalArray

print detailed info on differences between JS arrays.

const one = [1,2,3];
const two = [4,5,6];

one.should.equalArray(one);
one.should.not.equalArray(two);

example output

This failing test:

{missing:'content', stable: 'unchanged'}.should.equalObject({newProperty: 'added', stable: 'unchanged'});

will output hash differences like:

Example

Bitdeli Badge

1.0.0

3 years ago

0.0.9

9 years ago

0.0.8

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago