Skip to content

Commit 35e1e1f

Browse files
committed
s/toThrowError/toThrow
jest v30 breaking change removes toThrowError alias
1 parent 950cba8 commit 35e1e1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/reader.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Reader', () => {
3636
});
3737

3838
it('rejects the promise if node-maxmind errors out', () => {
39-
return expect(Reader.open('fail.test')).rejects.toThrowError(
39+
return expect(Reader.open('fail.test')).rejects.toThrow(
4040
"ENOENT: no such file or directory, stat 'fail.test'"
4141
);
4242
});
@@ -51,7 +51,7 @@ describe('Reader', () => {
5151
});
5252

5353
it('throws an InvalidDbBufferError if buffer is not a valid DB', () => {
54-
expect(() => Reader.openBuffer(Buffer.from('foo'))).toThrowError(
54+
expect(() => Reader.openBuffer(Buffer.from('foo'))).toThrow(
5555
InvalidDbBufferError
5656
);
5757
});

0 commit comments

Comments
 (0)