New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

very-assertive

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

very-assertive

An Assertion library for Should.js defining a descriptive object comparator indicating how two objects differ (i.e. which properties have been modified / deleted / added)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 14 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc