Ver Fonte

fix and re-enable companion test

Ifedapo Olarewaju há 6 anos atrás
pai
commit
6da00faf64
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      package.json
  2. 1 1
      packages/@uppy/companion/test/__mocks__/purest.js

+ 1 - 1
package.json

@@ -102,7 +102,7 @@
     "test:unit": "jest",
     "test:unit": "jest",
     "test:companion": "cd ./packages/@uppy/companion && npm run test",
     "test:companion": "cd ./packages/@uppy/companion && npm run test",
     "test:type": "tsc -p .",
     "test:type": "tsc -p .",
-    "test": "npm run lint && npm run test:unit && npm run test:type",
+    "test": "npm run lint && npm run test:unit && npm run test:type && npm run test:companion",
     "test:watch": "jest --watch",
     "test:watch": "jest --watch",
     "travis:deletecache": "travis cache --delete",
     "travis:deletecache": "travis cache --delete",
     "watch:css": "onchange 'packages/**/*.scss' --initial --verbose -- npm run build:css",
     "watch:css": "onchange 'packages/**/*.scss' --initial --verbose -- npm run build:css",

+ 1 - 1
packages/@uppy/companion/test/__mocks__/purest.js

@@ -20,7 +20,7 @@ class MockPurest {
           kind: 'drive#fileList',
           kind: 'drive#fileList',
           etag: '"bcIyJ9A3gXa8oTYmz6nzAjQd-lY/eQc3WbZHkXpcItNyGKDuKXM_bNY"',
           etag: '"bcIyJ9A3gXa8oTYmz6nzAjQd-lY/eQc3WbZHkXpcItNyGKDuKXM_bNY"',
           items: [{ id: '0B2x-PmqQHSKdT013TE1VVjZ3TWs' }],
           items: [{ id: '0B2x-PmqQHSKdT013TE1VVjZ3TWs' }],
-          fileSize: 300
+          size: 300
         }
         }
       }
       }
       const body = responses[this.opts.providerName]
       const body = responses[this.opts.providerName]