diff --git a/package.json b/package.json index c75c64c..ad20da7 100644 --- a/package.json +++ b/package.json @@ -26,51 +26,51 @@ }, "dependencies": { "awesomplete": "^1.1.1", - "axios": "^0.15.2", + "axios": "^0.16.1", "bootstrap": "4.0.0-alpha.6", "clipboard": "^1.6.1", "font-awesome": "^4.7.0", "hint.css": "^2.4.1", - "jwt-decode": "^2.1.0", + "jwt-decode": "^2.2.0", "lesspass": "^6.0.0", "lodash.debounce": "^4.0.8", - "vue": "^2.2.2", + "vue": "^2.2.6", "vue-polyglot": "^0.1.7", - "vue-router": "^2.3.0", - "vuex": "^2.2.1", - "vuex-persistedstate": "^1.3.0", + "vue-router": "^2.4.0", + "vuex": "^2.3.1", + "vuex-persistedstate": "^1.4.0", "vuex-router-sync": "^4.1.2" }, "devDependencies": { - "ava": "^0.18.2", - "babel-core": "^6.22.1", - "babel-loader": "^6.4.0", - "babel-plugin-transform-runtime": "^6.22.0", - "babel-preset-es2015": "^6.22.0", - "babel-preset-stage-2": "^6.22.0", - "babel-register": "^6.22.0", - "babel-runtime": "^6.22.0", + "ava": "^0.19.1", + "babel-core": "^6.24.1", + "babel-loader": "^6.4.1", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-stage-2": "^6.24.1", + "babel-register": "^6.24.1", + "babel-runtime": "^6.23.0", "copy-webpack-plugin": "^4.0.1", - "cross-env": "^3.2.3", - "css-loader": "^0.27.1", + "cross-env": "^4.0.0", + "css-loader": "^0.28.0", "express": "^4.15.2", "extract-text-webpack-plugin": "^2.1.0", - "file-loader": "^0.10.1", - "husky": "^0.13.2", + "file-loader": "^0.11.1", + "husky": "^0.13.3", "json-loader": "^0.5.4", - "nock": "^9.0.9", - "node-sass": "^4.5.0", - "optimize-css-assets-webpack-plugin": "^1.3.0", + "nock": "^9.0.13", + "node-sass": "^4.5.2", + "optimize-css-assets-webpack-plugin": "^1.3.1", "sass-loader": "^6.0.3", - "style-loader": "^0.16.0", + "style-loader": "^0.16.1", "timekeeper": "^1.0.0", "url-loader": "^0.5.8", - "vue-loader": "^11.1.4", + "vue-loader": "^11.3.4", "vue-polyglot-utils": "^0.1.1", - "vue-template-compiler": "^2.2.2", + "vue-template-compiler": "^2.2.6", "walk": "^2.3.9", - "webpack": "^2.2.1", - "webpack-dev-server": "^2.4.1" + "webpack": "^2.4.1", + "webpack-dev-server": "^2.4.2" }, "ava": { "require": [ diff --git a/test/api.user.js b/test/api.user.js index 5e9843e..95008e8 100644 --- a/test/api.user.js +++ b/test/api.user.js @@ -22,7 +22,9 @@ test('register', t => { test('resetPassword', t => { var email = 'test@lesspass.com'; nock('https://lesspass.com').post('/api/auth/password/reset/', {email}).reply(204); - t.notThrows(User.resetPassword({email}, {baseURL: 'https://lesspass.com'})); + return User.resetPassword({email}, {baseURL: 'https://lesspass.com'}).then(data => { + t.is(data.status, 204) + }); }); test('confirmResetPassword', t => { @@ -32,7 +34,9 @@ test('confirmResetPassword', t => { new_password: 'password1' }; nock('https://lesspass.com').post('/api/auth/password/reset/confirm/', newPassword).reply(204); - t.notThrows(User.confirmResetPassword(newPassword, {baseURL: 'https://lesspass.com'})); + return User.confirmResetPassword(newPassword, {baseURL: 'https://lesspass.com'}).then(data => { + t.is(data.status, 204) + }); }); test('refresh token', t => {