Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cajubelt committed Feb 28, 2024
1 parent c5bee66 commit bc422c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/KYCInfoFieldSection.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,12 @@ describe('KYCInfoFieldSection', () => {
const result = getDropdownValues({ allowedValues, choices, formatter })
expect(result).toEqual(allowedValues)
})
it('returns formatted values', () => {
const allowedValues: [string, ...string[]] = ['a', 'b']
const choices: [string, ...string[]] = ['A', 'B', 'C']
const formatter = (x: string) => x.toUpperCase()
const result = getDropdownValues({ allowedValues, choices, formatter })
expect(result).toEqual(['A', 'B'])
})
})
})

0 comments on commit bc422c4

Please sign in to comment.