Open dsernst opened 7 years ago
Here's the relevant part of test.js:
const expected = JSON.stringify(storedJSON[index][field])
const actual = JSON.stringify(bill[field])
if (expected !== actual) {
console.log('Expected:', expected)
console.log('Actual:', actual)
console.log()
throw new Error(`PARSE EXPECTATION FAILURE: agenda[${index}][${field}]`)
}
Instead of re-inventing the wheel with
console.log
+throw
.