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

Commit c67f368

Browse files
committed
Change test code.
1 parent e612ea5 commit c67f368

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test-0.5.x.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('Download file to storage with custom file extension', (report, done) =
3535
})
3636
.fetch('GET', `${TEST_SERVER_URL}/public/github2.jpg`)
3737
.then((resp) => {
38+
console.log(resp.path())
3839
tmpFilePath = resp.path()
3940
report(<Info key={`image from ${tmpFilePath}`}>
4041
<Image
@@ -158,7 +159,7 @@ describe('Session create mechanism test', (report, done) => {
158159
})
159160
.fetch('GET', `${TEST_SERVER_URL}/public/github.png`)
160161
let p3 = RNFetchBlob.config({
161-
path : sysDirs.DocumentDir + '/session-test.png'
162+
path : sysDirs.DocumentDir + '/session-test'+Date.now()+'.png'
162163
})
163164
.fetch('GET', `${TEST_SERVER_URL}/public/github.png`)
164165

test/test-init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const { Assert, Comparer, Info, describe, prop } = RNTest
1818
// test environment variables
1919

2020
prop('FILENAME', `${Platform.OS}-0.5.0-${Date.now()}.png`)
21-
prop('TEST_SERVER_URL', 'http://192.168.16.70:8123')
21+
prop('TEST_SERVER_URL', 'http://localhost:8123')
2222
prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
2323
prop('styles', {
2424
image : {
@@ -39,7 +39,6 @@ describe('GET image from server', (report, done) => {
3939
Authorization : 'Bearer abde123eqweje'
4040
})
4141
.then((resp) => {
42-
4342
RNTest.prop('image', resp.base64())
4443
report(
4544
<Info key="Response image">

0 commit comments

Comments
 (0)