From 44860b0dcf53103547b88d1e3be50c9bdd462523 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Thu, 2 Jun 2016 19:23:39 +0100 Subject: [PATCH] Update packages, fix test --- package.json | 54 +++++++++++++++++++++---------------------- test/api/file.spec.js | 6 ++--- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 9e1eb70..3c0a7b9 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/test/api/file.spec.js b/test/api/file.spec.js index 8a45266..b33107a 100644 --- a/test/api/file.spec.js +++ b/test/api/file.spec.js @@ -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); });