Skip to content

Commit

Permalink
adds test
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Oct 18, 2024
1 parent 3b9395c commit 7d6c488
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,12 @@ describe('InputMasked component with currency_mask', () => {
expect(document.querySelector('input').value).toBe('1 234 NOK')
})

it('should not append a comma when entering a dot', () => {
render(<InputMasked value="12345,1" as_currency decimalLimit={0} />)

expect(document.querySelector('input').value).toBe('12 345 kr')
})

it('should not show mask if placeholder is set', () => {
const placeholderText = 'Placeholder-text'

Expand Down

0 comments on commit 7d6c488

Please sign in to comment.