Skip to content

Commit

Permalink
update EMPTY_FILE error code where thrown to 99 (#649)
Browse files Browse the repository at this point in the history
* update EMPTY_FILE error code where thrown

* fix test to account for error code change
  • Loading branch information
david-nishi authored Nov 12, 2018
1 parent e7bc2bf commit 4fd11fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/utils/files.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('validateMisc', () => {
validateMisc(files.misc).then(issues => {
assert.ok(issues.length > 0)
assert.ok(issues.every(issue => issue instanceof utils.issues.Issue))
assert.notStrictEqual(issues.findIndex(issue => issue.code === 97), -1)
assert.notStrictEqual(issues.findIndex(issue => issue.code === 99), -1)
done()
})
})
Expand Down
2 changes: 1 addition & 1 deletion utils/files/testFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function handleFsAccess(accessErr, file, stats, callback) {
if (stats.size === 0) {
callback(
new Issue({
code: 97,
code: 99,
file: file,
reason: `Empty files (${file.path}) not allowed.`,
}),
Expand Down

0 comments on commit 4fd11fb

Please sign in to comment.