Implemented jest test for Pokemon Card component (part 2): export formatNumber

develop
Jason Zhu 2023-03-23 21:04:15 +11:00
parent 9e48382026
commit 751704a8c2
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export interface PokemonProps {
types: string[];
}
function formatNumber(num: number) {
export function formatNumber(num: number) {
return '#' + num.toString().padStart(3, '0');
}