Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 29, 2023
1 parent 6f9ebfc commit 3e0b2d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check.js
Expand Up @@ -108,10 +108,13 @@ export async function check(
// Unsupported files
continue
}

// istanbul ignore next
if (!error.file) {
push(error)
continue
}

let { line, column } = location(error.file.text).toPoint(error.start)
let expect = expects.find(j => {
return error.file.fileName === j.fileName && line === j.line && !j.used
Expand Down

0 comments on commit 3e0b2d2

Please sign in to comment.