ray-template/__test__/basic/downloadBase64File.spec.ts
2024-03-23 11:25:28 +08:00

13 lines
358 B
TypeScript

import { downloadBase64File } from '../../src/utils/basic'
describe('downloadBase64File', () => {
const base64 =
'data:image/png;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAE'
it('download base64 to file', () => {
const result = downloadBase64File(base64, 'test.png')
expect(result).toBe(void 0)
})
})