Skip to content

Commit

Permalink
test: add utility method without tests & have a blocking config in co…
Browse files Browse the repository at this point in the history
…decov yaml

Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Jan 3, 2024
1 parent 2e79b93 commit abb4bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ coverage:
status:
patch:
default:
informational: true
target: 100%
threshold: 1%
# js:
# target: auto
# flags:
Expand Down
2 changes: 2 additions & 0 deletions src/v0/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,7 @@ const parseConfigArray = (arr, key) => {
return arr.map((item) => item[key]);
};

const camelToSnakeCase = str => str.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);
// ========================================================================
// EXPORTS
// ========================================================================
Expand Down Expand Up @@ -2218,4 +2219,5 @@ module.exports = {
isNewStatusCodesAccepted,
IsGzipSupported,
parseConfigArray,
camelToSnakeCase
};

0 comments on commit abb4bc1

Please sign in to comment.