mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
13 lines
358 B
TypeScript
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)
|
|
})
|
|
})
|