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

Commit 08791d3

Browse files
committed
Add test
1 parent dac901f commit 08791d3

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Diff for: test/test-0.10.0.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ let begin = Date.now()
117117
//
118118
// })
119119

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+
// })
135135

136136
describe('#162 get free disk space', (report, done) => {
137137

Diff for: test/test-init.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const { Assert, Comparer, Info, prop } = RNTest
1818
// test environment variables
1919

2020
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')
2525
prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
2626
prop('styles', {
2727
image : {
@@ -73,14 +73,14 @@ describe('GET image from server', (report, done) => {
7373
// require('./test-0.9.4')
7474
// require('./test-0.9.5')
7575
// require('./test-0.9.6')
76-
// require('./test-0.10.0')
76+
require('./test-0.10.0')
7777
// require('./test-background.js')
7878
// require('./test-stream')
7979
// require('./test-fetch')
8080
// require('./test-fs')
8181
// require('./test-xmlhttp')
8282
// require('./test-blob')
8383
// require('./test-firebase')
84-
require('./test-android')
84+
// require('./test-android')
8585
// require('./test-stress')
8686
// require('./benchmark')

0 commit comments

Comments
 (0)