Ben Hsieh 8 jaren geleden
bovenliggende
commit
08791d3821
2 gewijzigde bestanden met toevoegingen van 21 en 21 verwijderingen
  1. 15
    15
      test/test-0.10.0.js
  2. 6
    6
      test/test-init.js

+ 15
- 15
test/test-0.10.0.js Bestand weergeven

@@ -117,21 +117,21 @@ let begin = Date.now()
117 117
 //
118 118
 // })
119 119
 
120
-describe('SSL test #159', (report, done) => {
121
-  RNFetchBlob.config({
122
-    trusty : true
123
-    }).fetch('GET', `${TEST_SERVER_URL_SSL}/public/github.png`, {
124
-      'Cache-Control' : 'no-store'
125
-    })
126
-    .then(res => {
127
-      report(<Assert key="trusty request should pass" expect={true} actual={true}/>)
128
-      return RNFetchBlob.fetch('GET',`${TEST_SERVER_URL_SSL}/public/github.png`)
129
-    })
130
-    .catch(e => {
131
-      report(<Assert key="non-trusty request should not pass" expect={true} actual={true}/>)
132
-      done()
133
-    })
134
-})
120
+// describe('SSL test #159', (report, done) => {
121
+//   RNFetchBlob.config({
122
+//     trusty : true
123
+//     }).fetch('GET', `${TEST_SERVER_URL_SSL}/public/github.png`, {
124
+//       'Cache-Control' : 'no-store'
125
+//     })
126
+//     .then(res => {
127
+//       report(<Assert key="trusty request should pass" expect={true} actual={true}/>)
128
+//       return RNFetchBlob.fetch('GET',`${TEST_SERVER_URL_SSL}/public/github.png`)
129
+//     })
130
+//     .catch(e => {
131
+//       report(<Assert key="non-trusty request should not pass" expect={true} actual={true}/>)
132
+//       done()
133
+//     })
134
+// })
135 135
 
136 136
 describe('#162 get free disk space', (report, done) => {
137 137
 

+ 6
- 6
test/test-init.js Bestand weergeven

@@ -18,10 +18,10 @@ const { Assert, Comparer, Info, prop } = RNTest
18 18
 // test environment variables
19 19
 
20 20
 prop('FILENAME', `${Platform.OS}-0.10.0-${Date.now()}.png`)
21
-// prop('TEST_SERVER_URL', 'http://localhost:8123')
22
-// prop('TEST_SERVER_URL_SSL', 'https://localhost:8124')
23
-prop('TEST_SERVER_URL', 'http://192.168.17.203:8123')
24
-prop('TEST_SERVER_URL_SSL', 'https://192.168.17.203:8124')
21
+prop('TEST_SERVER_URL', 'http://localhost:8123')
22
+prop('TEST_SERVER_URL_SSL', 'https://localhost:8124')
23
+// prop('TEST_SERVER_URL', 'http://192.168.0.12:8123')
24
+// prop('TEST_SERVER_URL_SSL', 'https://192.168.0.12:8124')
25 25
 prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
26 26
 prop('styles', {
27 27
   image : {
@@ -73,7 +73,7 @@ describe('GET image from server', (report, done) => {
73 73
 // require('./test-0.9.4')
74 74
 // require('./test-0.9.5')
75 75
 // require('./test-0.9.6')
76
-// require('./test-0.10.0')
76
+require('./test-0.10.0')
77 77
 // require('./test-background.js')
78 78
 // require('./test-stream')
79 79
 // require('./test-fetch')
@@ -81,6 +81,6 @@ describe('GET image from server', (report, done) => {
81 81
 // require('./test-xmlhttp')
82 82
 // require('./test-blob')
83 83
 // require('./test-firebase')
84
-require('./test-android')
84
+// require('./test-android')
85 85
 // require('./test-stress')
86 86
 // require('./benchmark')