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

Commit d766c7c

Browse files
committed
Add 0.9.4 test cases
1 parent aeca9ec commit d766c7c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/test-0.9.4.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ import {
1313

1414
window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest
1515
window.Blob = RNFetchBlob.polyfill.Blob
16-
// window.fetch = new RNFetchBlob.polyfill.Fetch({
17-
// auto : true,
18-
// binaryContentTypes : ['image/', 'video/', 'audio/']
19-
// }).build()
2016

2117
const fs = RNFetchBlob.fs
2218
const { Assert, Comparer, Info, prop } = RNTest
@@ -54,12 +50,12 @@ describe('issue #106', (report, done) => {
5450

5551
fetch('https://rnfb-test-app.firebaseapp.com/6m-json.json')
5652
.then((res) => {
57-
console.log('##',res)
5853
console.log('## converted')
5954
return res.json()
6055
})
6156
.then((data) => {
62-
console.log(data)
57+
// console.log(data)
58+
report(<Assert key="fetch request success" expect={20000} actual={data.total}/>)
6359
done()
6460
})
6561

0 commit comments

Comments
 (0)