2.0.1 • Published 5 years ago

tsame v2.0.1

Weekly downloads
33,315
License
ISC
Repository
github
Last release
5 years ago

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.

2.0.1

5 years ago

2.0.0

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago