|
@@ -13,10 +13,6 @@ import {
|
13
|
13
|
|
14
|
14
|
window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest
|
15
|
15
|
window.Blob = RNFetchBlob.polyfill.Blob
|
16
|
|
-// window.fetch = new RNFetchBlob.polyfill.Fetch({
|
17
|
|
-// auto : true,
|
18
|
|
-// binaryContentTypes : ['image/', 'video/', 'audio/']
|
19
|
|
-// }).build()
|
20
|
16
|
|
21
|
17
|
const fs = RNFetchBlob.fs
|
22
|
18
|
const { Assert, Comparer, Info, prop } = RNTest
|
|
@@ -54,12 +50,12 @@ describe('issue #106', (report, done) => {
|
54
|
50
|
|
55
|
51
|
fetch('https://rnfb-test-app.firebaseapp.com/6m-json.json')
|
56
|
52
|
.then((res) => {
|
57
|
|
- console.log('##',res)
|
58
|
53
|
console.log('## converted')
|
59
|
54
|
return res.json()
|
60
|
55
|
})
|
61
|
56
|
.then((data) => {
|
62
|
|
- console.log(data)
|
|
57
|
+ // console.log(data)
|
|
58
|
+ report(<Assert key="fetch request success" expect={20000} actual={data.total}/>)
|
63
|
59
|
done()
|
64
|
60
|
})
|
65
|
61
|
|