mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-22 09:48:06 +00:00
11 lines
421 B
JavaScript
11 lines
421 B
JavaScript
import { describe, expect, it } from '@jest/globals'
|
|
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)
|
|
})
|
|
})
|