Skip to content

Commit

Permalink
Merge pull request #94 from log4js-node/update-test
Browse files Browse the repository at this point in the history
chore(test): 100% coverage (ignored 1 scenario that is fail-safe and doesn't run on windows)
  • Loading branch information
lamweili authored Feb 5, 2022
2 parents afc2b99 + a96ca22 commit 141d4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/RollingFileWriteStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class RollingFileWriteStream extends Writable {

// Sorted from the oldest to the latest
async _getExistingFiles() {
const files = await fs.readdir(this.fileObject.dir).catch(() => []);
const files = await fs.readdir(this.fileObject.dir).catch( /* istanbul ignore next */ () => []);

debug(`_getExistingFiles: files=${files}`);
const existingFileDetails = files
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
],
"branches": 100,
"lines": 100,
"functions": 98
"functions": 100
}
}

0 comments on commit 141d4cf

Please sign in to comment.