images-set-to-webp-converter
Version:
Powerful util for images (.png | .jpeg | .jpg) set conversion to .webp, generated by Abobe Images Processor Pro plugin
13 lines (11 loc) • 465 B
text/typescript
import imagesNotFound from '../src/utils/imagesNotFound'
describe('imagesNotFound()', () => {
it('should return false if wrong one path provided by user', () => {
expect(imagesNotFound([])).toBeTruthy()
expect(imagesNotFound(null)).toBeTruthy()
expect(imagesNotFound(undefined)).toBeTruthy()
})
it('should return true if correct one path provided by user', () => {
expect(imagesNotFound(['sd', 'sd', 'User/test_Folder'])).toBeFalsy()
})
})