Update tests to get them passing again (#2853)
This commit is contained in:
parent
fad40dda97
commit
543e114877
15 changed files with 214 additions and 83 deletions
|
@ -5,12 +5,13 @@ import {compressIfNeeded} from './manip'
|
|||
|
||||
let _imageCounter = 0
|
||||
async function getFile() {
|
||||
const files = await RNFS.readDir(
|
||||
let files = await RNFS.readDir(
|
||||
RNFS.LibraryDirectoryPath.split('/')
|
||||
.slice(0, -5)
|
||||
.concat(['Media', 'DCIM', '100APPLE'])
|
||||
.join('/'),
|
||||
)
|
||||
files = files.filter(file => file.path.endsWith('.JPG'))
|
||||
const file = files[_imageCounter++ % files.length]
|
||||
return await compressIfNeeded({
|
||||
path: file.path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue