Browse Source

Change test case

Ben Hsieh 8 years ago
parent
commit
cd7958063a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test/test-0.9.6.js

+ 1
- 1
test/test-0.9.6.js View File

114
     .then((res) => {
114
     .then((res) => {
115
       return RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
115
       return RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
116
         Authorization : `Bearer ${DROPBOX_TOKEN}`,
116
         Authorization : `Bearer ${DROPBOX_TOKEN}`,
117
-        'Dropbox-API-Arg': '{\"path\": \"/rn-upload/intervalTest.png\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}',
117
+        'Dropbox-API-Arg': '{\"path\": \"/rn-upload/intervalTest.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}',
118
         'Content-Type' : 'application/octet-stream',
118
         'Content-Type' : 'application/octet-stream',
119
       }, RNFetchBlob.wrap(res.path()))
119
       }, RNFetchBlob.wrap(res.path()))
120
       .uploadProgress({count : 10, interval : -1}, (current, total) => {
120
       .uploadProgress({count : 10, interval : -1}, (current, total) => {