Skip to content

Commit 7c2e97a

Browse files
committed
Add covrage ignore on error paths
1 parent 8c58434 commit 7c2e97a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class Input {
167167
if (fileURLToPath) {
168168
result.file = fileURLToPath(fromUrl)
169169
} else {
170+
// istanbul ignore next
170171
throw new Error(`file: protocol is not available in this PostCSS build`);
171172
}
172173
}

lib/map-generator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class MapGenerator {
205205
if (pathToFileURL) {
206206
return pathToFileURL(node.source.input.from).toString()
207207
} else {
208+
// istanbul ignore next
208209
throw new Error('`map.absolute` option is not available in this PostCSS build')
209210
}
210211
} else {

0 commit comments

Comments
 (0)