1.0.5 • Published 8 years ago

arbitrary-equivalence v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago
  • Compare -- Usage import configureCompare from 'compare' const compare = configureCompare(equivalenceVerifier, prepareLeftToPrint)

const { errCount, log } from compare(object_1, object_2)

errCount is a number

log is a multiple lines string (using \n) that can be passed as it is to a console.log, line this: console.log(log)

  • extendExpect -- Usage import extendExpect from 'compare' extendExpect(equivalenceVerifier, prepareLeftToPrint, testFramework)

Doing the above would make it possible to do like: expect(object_1).toBeEquivalent(object_2)

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago