tree: 3f9a762100c87f3c8e6ffd9a0fb3d787dc409322 [path history] [tgz]
  1. index.js
  2. LICENSE
  3. package.json
  4. README.md
node_modules/tsame/README.md

tsame

Verify that two objects are the same, for use in tap. The less accepting cousin of tmatch.

This merges code originally found in only-shallow and deeper. See license file for more details.

USAGE

const tsame = require('tsame')

const obj1 = { foo: '1' }
const obj2 = { foo: 1 }

// nonstrict by default
assert(tsame(obj1, obj2))

// strictly the same, types and all
assert(!tsame.strict(obj1, obj2))

Pretty much what it says on the tin.