diff --git a/src/features/Pokedex/Pokemon/Pokemon.test.ts b/src/features/Pokedex/Pokemon/Pokemon.test.ts new file mode 100644 index 0000000..6b1fecc --- /dev/null +++ b/src/features/Pokedex/Pokemon/Pokemon.test.ts @@ -0,0 +1,15 @@ +import { formatNumber } from './Pokemon'; + +describe('Test Functions', () => { + describe('formatNumber', () => { + it('should format single digit integer correctly', () => { + expect(formatNumber(6)).toBe('#006'); + }); + it('should format double digit integer correctly', () => { + expect(formatNumber(16)).toBe('#016'); + }); + it('should format triple digit integer correctly', () => { + expect(formatNumber(116)).toBe('#116'); + }); + }); +});