Skip to content

Commit

Permalink
Add covrage ignore on error paths
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 committed Apr 11, 2021
1 parent 8c58434 commit 7c2e97a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/input.js
Expand Up @@ -167,6 +167,7 @@ class Input {
if (fileURLToPath) {
result.file = fileURLToPath(fromUrl)
} else {
// istanbul ignore next
throw new Error(`file: protocol is not available in this PostCSS build`);
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/map-generator.js
Expand Up @@ -205,6 +205,7 @@ class MapGenerator {
if (pathToFileURL) {
return pathToFileURL(node.source.input.from).toString()
} else {
// istanbul ignore next
throw new Error('`map.absolute` option is not available in this PostCSS build')
}
} else {
Expand Down

0 comments on commit 7c2e97a

Please sign in to comment.