NET-Web-API-w-Angular/my-app/node_modules/is-what/test/index.test.js

16 lines
304 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
// @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)
})