vanillajs-browser-helpers
Version:
Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser
19 lines (14 loc) • 315 B
text/typescript
import isBlob from '../isBlob';
describe('"isBlob"', () => {
it('Returns `true` for Blob objects', () => {
expect(isBlob(new Blob())).toBe(true);
});
it.each([
null,
{},
123,
'blob'
])('Returns `false` for non Blob objects', (val) => {
expect(isBlob(val)).toBe(false);
});
});