@uppy/utils
Version:
Shared utility functions for Uppy Core and plugins maintained by the Uppy team.
12 lines (10 loc) • 414 B
text/typescript
import { describe, expect, it } from 'vitest'
import isObjectURL from './isObjectURL.js'
describe('isObjectURL', () => {
it('should return true if the specified url is an object url', () => {
expect(isObjectURL('blob:abc123')).toEqual(true)
expect(isObjectURL('kblob:abc123')).toEqual(false)
expect(isObjectURL('blob-abc123')).toEqual(false)
expect(isObjectURL('abc123')).toEqual(false)
})
})