From dcc233c0ab69ba2da3290f4518d94b2b9c8a1cba Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 21 Apr 2015 13:02:47 -0700 Subject: [PATCH] Fix the tests --- test/upload-download.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/upload-download.test.js b/test/upload-download.test.js index ef276d0..4fa06d6 100644 --- a/test/upload-download.test.js +++ b/test/upload-download.test.js @@ -163,7 +163,8 @@ describe('storage service', function () { .expect('Content-Type', /json/) .expect(200, function (err, res) { assert.deepEqual(res.body, {"result": {"files": {"image": [ - {"container": "album1", "name": "test.jpg", "type": "image/jpeg"} + {"container": "album1", "name": "test.jpg", "type": "image/jpeg", + "size": 60475} ]}, "fields": {}}}); done(); }); @@ -178,7 +179,7 @@ describe('storage service', function () { .expect('Content-Type', /json/) .expect(200, function (err, res) { assert.deepEqual(res.body, {"result": {"files": {"image": [ - {"container": "album1", "name": "image-test.jpg", "type": "image/jpeg", "acl":"public-read"} + {"container": "album1", "name": "image-test.jpg", "type": "image/jpeg", "acl":"public-read", "size": 60475} ]}, "fields": {}}}); done(); });