|
@@ -1,5 +1,6 @@
|
1
|
1
|
import RNTest from './react-native-testkit/'
|
2
|
2
|
import React from 'react'
|
|
3
|
+import _ from 'lodash'
|
3
|
4
|
import RNFetchBlob from 'react-native-fetch-blob'
|
4
|
5
|
import {
|
5
|
6
|
StyleSheet,
|
|
@@ -21,7 +22,7 @@ const JSONStream = RNFetchBlob.JSONStream
|
21
|
22
|
const fs = RNFetchBlob.fs
|
22
|
23
|
const { Assert, Comparer, Info, prop } = RNTest
|
23
|
24
|
const describe = RNTest.config({
|
24
|
|
- group : '0.10.1',
|
|
25
|
+ group : '0.10.2',
|
25
|
26
|
run : true,
|
26
|
27
|
expand : true,
|
27
|
28
|
timeout : 20000,
|
|
@@ -62,6 +63,19 @@ describe('#230 add and option for setting if the request follow redirect or not'
|
62
|
63
|
|
63
|
64
|
})
|
64
|
65
|
|
|
66
|
+describe('#240 openDocument does not support file URI', (report, done) => {
|
|
67
|
+ RNFetchBlob
|
|
68
|
+ .config({ fileCache : true })
|
|
69
|
+ .fetch('GET', `${TEST_SERVER_URL}/public/github.png`)
|
|
70
|
+ .then((res) => {
|
|
71
|
+ RNFetchBlob.ios.openDocument(res.path())
|
|
72
|
+ .then(() => {
|
|
73
|
+ done();
|
|
74
|
+ })
|
|
75
|
+ })
|
|
76
|
+
|
|
77
|
+})
|
|
78
|
+
|
65
|
79
|
describe('#241 null header silent failed issue', (report, done) => {
|
66
|
80
|
|
67
|
81
|
RNFetchBlob.fetch('GET', `${TEST_SERVER_URL}/public/github.png`, {
|