Useful methods for file-related functions.
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.

38 lines
749 B

  1. import * as index from './index'
  2. describe('calculateHash', () => {
  3. it('should exist', () => {
  4. expect(index.calculateHash).toBeDefined()
  5. })
  6. })
  7. describe('dataUriToBlob', () => {
  8. it('should exist', () => {
  9. expect(index.dataUriToBlob).toBeDefined()
  10. })
  11. })
  12. describe('formatFileSize', () => {
  13. it('should exist', () => {
  14. expect(index.formatFileSize).toBeDefined()
  15. })
  16. })
  17. describe('getUrlScheme', () => {
  18. it('should exist', () => {
  19. expect(index.getUrlScheme).toBeDefined()
  20. })
  21. })
  22. describe('isValidFileName', () => {
  23. it('should exist', () => {
  24. expect(index.isValidFileName).toBeDefined()
  25. })
  26. })
  27. describe('isValidMimeType', () => {
  28. it('should exist', () => {
  29. expect(index.isValidMimeType).toBeDefined()
  30. })
  31. })