Commit c75644ed authored by sunguoshu's avatar sunguoshu

初始化

parents
Pipeline #310 canceled with stages
.idea
node_modules
\ No newline at end of file
{
"name": "fe-utils",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "vitest"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^5.1.6",
"vitest": "^0.33.0"
}
}
This diff is collapsed.
const digits = [
'壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖', '零'
];
const units = [
'拾', '佰', '仟', '万', '亿', '兆',
];
const units2 = [
'角', '分', '厘', '毫', '丝'
];
export default function numberToWords(num: number): string {
return 'one';
}
\ No newline at end of file
import { describe, it, expect } from 'vitest'
import numberToWords from '../../src/money/numberToWords'
describe('numberToWords', () => {
it('1 return 壹元', () => {
expect(numberToWords(1)).toBe('壹元')
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment