You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
421 B
12 lines
421 B
|
3 years ago
|
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)
|
||
|
|
})
|
||
|
|
})
|