Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 52e988d

Browse files
committed
Add 0.10.1 test cases
1 parent 4de6337 commit 52e988d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/test-0.10.1.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,27 @@ describe("Invalid promise.resolve call after task is canceled #176", (report, do
5454
}, 2000)
5555

5656
})
57+
58+
describe('passing empty value to fs.lstat doest not crash the app #205', (report, done) => {
59+
let path = fs.dirs.DocumentDir +'/testfile' + Date.now()
60+
fs.createFile(path, path, 'utf8')
61+
.then(() => fs.lstat(null))
62+
.catch(() => {
63+
done()
64+
})
65+
})
66+
67+
describe('media scanner test #203', (report, done) => {
68+
69+
RNFetchBlob
70+
.config({ path : fs.dirs.DownloadDir +'/#203-'+Date.now()+'.png' , appendExt : 'png' })
71+
.fetch('GET', `${TEST_SERVER_URL}/public/github.png`)
72+
.then((res) => {
73+
console.log(res.path())
74+
fs.scanFile([ { path : res.path() } ])
75+
})
76+
.then(() => {
77+
done()
78+
})
79+
80+
})

0 commit comments

Comments
 (0)