You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
304 B
16 lines
304 B
// @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)
|
|
})
|