isObjectURL.test.js 421 B

1234567891011
  1. import { describe, expect, it } from '@jest/globals'
  2. import isObjectURL from './isObjectURL.js'
  3. describe('isObjectURL', () => {
  4. it('should return true if the specified url is an object url', () => {
  5. expect(isObjectURL('blob:abc123')).toEqual(true)
  6. expect(isObjectURL('kblob:abc123')).toEqual(false)
  7. expect(isObjectURL('blob-abc123')).toEqual(false)
  8. expect(isObjectURL('abc123')).toEqual(false)
  9. })
  10. })