Browse Source

Add test case for #33

Ben Hsieh 8 years ago
parent
commit
649527ecdb
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      test/test-0.1.x-0.4.x.js
  2. 2
    2
      test/test-init.js

+ 1
- 1
test/test-0.1.x-0.4.x.js View File

141
   RNFetchBlob.fetch('DELETE', `${TEST_SERVER_URL}/hey`)
141
   RNFetchBlob.fetch('DELETE', `${TEST_SERVER_URL}/hey`)
142
   .then((resp) => {
142
   .then((resp) => {
143
     report(
143
     report(
144
-      <Assert key="check DELETE request result" expect={'man'} actual={resp.text()}/>,
144
+      <Assert key="check DELETE request result" expect={'man'} actual={resp.text()}/>)
145
       done()
145
       done()
146
   })
146
   })
147
 })
147
 })

+ 2
- 2
test/test-init.js View File

18
 // test environment variables
18
 // test environment variables
19
 
19
 
20
 prop('FILENAME', `${Platform.OS}-0.5.0-${Date.now()}.png`)
20
 prop('FILENAME', `${Platform.OS}-0.5.0-${Date.now()}.png`)
21
-prop('TEST_SERVER_URL', 'http://192.168.16.70:8123')
22
-prop('TEST_SERVER_URL_SSL', 'https://192.168.16.70:8124')
21
+prop('TEST_SERVER_URL', 'http://192.168.0.11:8123')
22
+prop('TEST_SERVER_URL_SSL', 'https://192.168.0.11:8124')
23
 prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
23
 prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
24
 prop('styles', {
24
 prop('styles', {
25
   image : {
25
   image : {