Skip to content

Commit

Permalink
test: amountToHangul 테스트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kinndohyun committed Jun 25, 2024
1 parent db94449 commit f501224
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/amountToHangul.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ describe('amountToHangul', () => {
expect(amountToHangul('100000000')).toEqual('일억');
expect(amountToHangul('100000100')).toEqual('일억백');
});

it('80자를 넘을 수 없다.', () => {
const testFn = () =>
amountToHangul('123456789012345678901234567890123456789012345678901234567890123456789012345678901');
expect(testFn).toThrowError();
});
});

0 comments on commit f501224

Please sign in to comment.