1.0.5 • Published 7 years ago

arbitrary-equivalence v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago