Skip to content

Commit

Permalink
Merge pull request #2 from levinal/fix/update-test-error-msg
Browse files Browse the repository at this point in the history
update test error msg for mutated or missing assertions
  • Loading branch information
osher authored Jun 1, 2020
2 parents 7ee612c + 8c7ca4e commit 0070ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/test-db-mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ module.exports = ({
: propsMatch(docs, searchedProps)
)
)
assert.deepEqual(notExist, [], `${dbName}.${colName}: missing mandatory entries`)
assert.deepEqual(notExist, [], `${dbName}.${colName}: mustExist assertion - missing mandatory entries in db`)
}

if (mustEql.length) {
const notEqual = mustEql.filter((searchedProps) => !propsMatch(docs, searchedProps))
assert.deepEqual(notEqual, [], `${dbName}.${colName}: mutated or missing entries`)
assert.deepEqual(notEqual, [], `${dbName}.${colName}: mustEql assertion - entries mutated or missing in db`)
}
}),
} = {}) => cols[colName] || (cols[colName] = {
Expand Down

0 comments on commit 0070ad4

Please sign in to comment.