Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
304 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // @ts-check
|
---|
| 2 | import {
|
---|
| 3 | isBlob,
|
---|
| 4 | isFile,
|
---|
| 5 | } from '../dist/index.cjs'
|
---|
| 6 |
|
---|
| 7 | test('isBlob', () => {
|
---|
| 8 | expect(isBlob(Blob)).toBe(false)
|
---|
| 9 | expect(isBlob(new Blob())).toBe(true)
|
---|
| 10 | })
|
---|
| 11 |
|
---|
| 12 | test('isFile', () => {
|
---|
| 13 | expect(isFile(File)).toBe(false)
|
---|
| 14 | expect(isFile(new File([''], '', { type: 'text/html' }))).toBe(true)
|
---|
| 15 | })
|
---|
Note:
See
TracBrowser
for help on using the repository browser.