mirror of
https://github.com/wishthis/wishthis.git
synced 2026-01-16 11:08:23 -05:00
16 lines
304 B
JavaScript
16 lines
304 B
JavaScript
// @ts-check
|
|
import {
|
|
isBlob,
|
|
isFile,
|
|
} from '../dist/index.cjs'
|
|
|
|
test('isBlob', () => {
|
|
expect(isBlob(Blob)).toBe(false)
|
|
expect(isBlob(new Blob())).toBe(true)
|
|
})
|
|
|
|
test('isFile', () => {
|
|
expect(isFile(File)).toBe(false)
|
|
expect(isFile(new File([''], '', { type: 'text/html' }))).toBe(true)
|
|
})
|