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

Commit

Permalink
Add 0.9.4 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 committed Aug 26, 2016
1 parent aeca9ec commit d766c7c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/test-0.9.4.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import {

window.XMLHttpRequest = RNFetchBlob.polyfill.XMLHttpRequest
window.Blob = RNFetchBlob.polyfill.Blob
// window.fetch = new RNFetchBlob.polyfill.Fetch({
// auto : true,
// binaryContentTypes : ['image/', 'video/', 'audio/']
// }).build()

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

fetch('https://rnfb-test-app.firebaseapp.com/6m-json.json')
.then((res) => {
console.log('##',res)
console.log('## converted')
return res.json()
})
.then((data) => {
console.log(data)
// console.log(data)
report(<Assert key="fetch request success" expect={20000} actual={data.total}/>)
done()
})

Expand Down

0 comments on commit d766c7c

Please sign in to comment.