source: trip-planner-front/node_modules/is-what/test/index.test.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 304 bytes
Line 
1// @ts-check
2import {
3 isBlob,
4 isFile,
5} from '../dist/index.cjs'
6
7test('isBlob', () => {
8 expect(isBlob(Blob)).toBe(false)
9 expect(isBlob(new Blob())).toBe(true)
10})
11
12test('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.