Update packages, fix test

This commit is contained in:
Jonathan Cremin 2016-06-02 19:23:39 +01:00
parent f59b9a5d22
commit 44860b0dcf
2 changed files with 30 additions and 30 deletions

View file

@ -24,63 +24,63 @@
"watch-sass": "node-sass -w -r -o web/public/styles/ web/public/styles/"
},
"dependencies": {
"aws-sdk": "~2.3.15",
"aws-sdk": "^2.3.16",
"babel": "~5.8.21",
"basic-auth": "~1.0.3",
"co": "~4.6.0",
"co-busboy": "~1.3.0",
"co-redis": "~1.2.1",
"co-redis": "^2.1.0",
"co-views": "~2.1.0",
"debug": "~2.2.0",
"ejs": "~2.3.2",
"ejs": "^2.4.2",
"form-data": "^1.0.0-rc3",
"http-errors": "~1.3.1",
"http-errors": "^1.5.0",
"image-size": "^0.5.0",
"image-type": "^2.1.0",
"jspm": "~0.16.0",
"kcors": "~1.0.1",
"koa": "~1.0.0",
"koa-bodyparser": "~2.0.1",
"jspm": "^0.16.36",
"kcors": "^1.2.1",
"koa": "^1.2.0",
"koa-bodyparser": "^2.2.0",
"koa-compress": "~1.0.8",
"koa-csrf": "~2.3.0",
"koa-error": "^2.0.0",
"koa-csrf": "^2.4.0",
"koa-error": "^2.1.0",
"koa-favicon": "~1.2.0",
"koa-generic-session": "~1.9.0",
"koa-helmet": "^0.2.0",
"koa-generic-session": "^1.10.2",
"koa-helmet": "^1.0.0",
"koa-logger": "~1.3.0",
"koa-redis": "~1.0.1",
"koa-redis": "^2.1.1",
"koa-router": "^5.1.2",
"koa-static": "^1.4.9",
"koa-static": "^2.0.0",
"koa-statsd": "~0.0.2",
"koa-views": "~3.1.0",
"koa-websocket": "~1.1.0",
"koa-views": "^4.1.0",
"koa-websocket": "^2.0.0",
"lwip": "0.0.9",
"mime-types": "~2.1.5",
"moment": "~2.10.6",
"moment": "^2.13.0",
"mongodb-promisified": "~1.0.3",
"mz": "^2.4.0",
"node-fetch": "^1.3.2",
"node-sass": "~3.6.0",
"node-fetch": "^1.5.3",
"node-sass": "^3.7.0",
"node-uuid": "~1.4.3",
"passwords": "~1.3.0",
"raven": "~0.8.1",
"redis": "~1.0.0",
"raven": "^0.11.0",
"redis": "^2.6.1",
"s3-upload-stream": "~1.0.7",
"sendgrid": "^2.0.0",
"ssh2-sftp-client": "^1.0.3",
"ssh2-sftp-client": "^1.0.4",
"statsy": "~0.2.0",
"stripe": "~3.7.1",
"stripe": "^4.7.0",
"swig": "~1.4.2"
},
"devDependencies": {
"babel-eslint": "^4.0.10",
"eslint": "~1.3.0",
"eslint-config-airbnb": "0.0.8",
"istanbul": "~0.3.18",
"mocha": "~2.2.5",
"nodemon": "~1.4.1",
"istanbul": "^0.4.3",
"mocha": "^2.5.3",
"nodemon": "^1.9.2",
"parallelshell": "~2.0.0",
"supertest": "~1.1.0",
"supertest": "^1.2.0",
"supertest-koa-agent": "^0.2.1",
"tmp": "~0.0.27"
},

View file

@ -26,11 +26,11 @@ describe('hostr-api file', function file() {
this.timeout(30000);
request
.post('/api/file')
.attach('file', path.join(__dirname, '..', 'fixtures', 'tall.jpg'))
.attach('file', path.join(__dirname, '..', 'fixtures', 'utah-arches.jpg'))
.auth('test@hostr.co', 'test-password')
.expect(201)
.expect((response) => {
assert(response.body.name === 'tall.jpg');
assert(response.body.name === 'utah-arches.jpg');
id = response.body.id;
})
.end(done);
@ -43,7 +43,7 @@ describe('hostr-api file', function file() {
.get('/api/file/' + id)
.expect(200)
.expect((response) => {
assert(response.body.name === 'tall.jpg');
assert(response.body.name === 'utah-arches.jpg');
})
.end(done);
});