improve propertyHelper for failure messages (#1480)

Example:
Before: descriptor value should be 42 Expected SameValue(«1», «0») to be true
After: descriptor value should be 42
This commit is contained in:
Leo Balter 2018-03-08 12:12:15 -05:00 committed by GitHub
parent ccab9a18b0
commit 222b86cac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function verifyProperty(obj, name, desc, options) {
}
}
assert.sameValue(failures.length, 0, failures.join('; '));
assert(!failures.length, failures.join('; '));
if (options && options.restore) {
Object.defineProperty(obj, name, originalDesc);