Skip to content
Permalink
Browse files
Fix error messages for toExist matcher (#15)
The message in case of failure was negated.
  • Loading branch information
raphinesse committed Jun 3, 2018
1 parent 5435b9a commit 0145473a3ac4f059d5f2212d219e12a4e8885aff
Showing 1 changed file with 2 additions and 2 deletions.
@@ -85,9 +85,9 @@ beforeEach(function () {
result.pass = fs.existsSync(testPath);

if (result.pass) {
result.message = 'Expected file ' + testPath + ' to exist.';
} else {
result.message = 'Expected file ' + testPath + ' to not exist.';
} else {
result.message = 'Expected file ' + testPath + ' to exist.';
}

return result;

0 comments on commit 0145473

Please sign in to comment.