Skip to content

Commit

Permalink
fix: vitest toThrowError 메서드로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kinndohyun committed Jun 30, 2024
1 parent 5ba6490 commit 60bc00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amountToHangul.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('amountToHangul', () => {

it('숫자로 된 금액이 80글자를 넘을 시 에러 발생', () => {
const longNumberString = '1'.repeat(81);
expect(() => amountToHangul(longNumberString)).toThrow(`convert range exceeded : ${longNumberString}`);
expect(() => amountToHangul(longNumberString)).toThrowError(`convert range exceeded : ${longNumberString}`);
});
});

0 comments on commit 60bc00f

Please sign in to comment.