Skip to content

Commit

Permalink
fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Jan 10, 2023
1 parent 7eb1c76 commit 4696b78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ describe('sync', () => {

try {
isBinaryFileSync(file);
} catch (e) {
} catch (e: any) {

expect(e.message).toBe("Path provided was not a file!")
}
});
Expand All @@ -259,7 +260,7 @@ describe('sync', () => {

try {
isBinaryFileSync(file);
} catch (e) {
} catch (e: any) {
expect(e.message).toBe("ENOENT: no such file or directory, stat 'test/fixtures/blahblahblbahhhhhh'")
}
});
Expand Down

0 comments on commit 4696b78

Please sign in to comment.