Skip to content

Commit fe655b5

Browse files
test(helpers): replace deprecated toThrowError with toThrow
1 parent 0de4a57 commit fe655b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/helpers/throw-errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function throwErrors(expectedParser: (input: unknown) => void) {
2323
it(`throws error for argument: ${type}`, () => {
2424
expect(() => {
2525
expectedParser(value);
26-
}).toThrowError(TypeError);
26+
}).toThrow(TypeError);
2727
});
2828
});
2929
}

0 commit comments

Comments
 (0)