wooorm / trim-trailing-lines

Compare 82feb2f ... +4 ... 5105388

Coverage Reach
index.js

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 9 files from the diff.
Other files ignored by Codecov
package.json has changed.
readme.md has changed.
test.js has changed.
.travis.yml was deleted.
.prettierignore has changed.
.gitignore has changed.

@@ -1,8 +1,9 @@
Loading
1 -
'use strict'
2 -
3 -
module.exports = trimTrailingLines
4 -
5 -
// Remove final newline characters from `value`.
6 -
function trimTrailingLines(value) {
1 +
/**
2 +
 * Remove final newline characters from `value`.
3 +
 *
4 +
 * @param {unknown} value Value with trailing line feeds, coerced to string.
5 +
 * @return {string} Value without trailing newlines.
6 +
 */
7 +
export function trimTrailingLines(value) {
7 8
  return String(value).replace(/\n+$/, '')
8 9
}

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
index.js 100.00%
Project Totals (1 files) 100.00%
Loading