Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Apr 17, 2024
1 parent 0fa979a commit 464e009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const types = parse.types

function safeRegex (re, opts) {
if (!opts) opts = {}
/* c8 ignore next */
const replimit = opts.limit === undefined ? 25 : opts.limit

/* c8 ignore next 2 */
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"devDependencies": {
"@fastify/pre-commit": "^2.1.0",
"c8": "^9.1.0",
"standard": "^17.1.0",
"tape": "^5.7.5",
"tsd": "^0.31.0"
Expand All @@ -18,7 +19,7 @@
"lint": "standard",
"test": "npm run test:unit && npm run test:typescript",
"test:typescript": "tsd",
"test:unit": "tape test/*.js"
"test:unit": "c8 tape test/*.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 464e009

Please sign in to comment.