diff --git a/Dockerfile b/Dockerfile index cdf017a41..f4702f79e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:9.5.0-alpine@sha256:50ae5f22356c5a0b0c0ea76d27a453b0baf577c61633aee25cea93dcacec1630 +FROM node:10.1-alpine LABEL maintainer="https://github.com/verdaccio/verdaccio" RUN apk --no-cache add openssl && \ diff --git a/circle.yml b/circle.yml index 09da5ce59..549f33895 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,6 @@ machine: environment: - YARN_VERSION: 1.3.2 + YARN_VERSION: 1.6.0 PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" node: version: 9 @@ -15,6 +15,7 @@ dependencies: fi - nvm install 6 - nvm install 8 + - nvm install 10 cache_directories: - ~/.yarn @@ -31,6 +32,8 @@ test: - yarn run test - nvm alias default 9 - yarn run test + - nvm alias default 10 + - yarn run test - yarn run test:e2e - yarn run coverage:publish - echo "machine github.com login verdacciobot password $GITHUB_TOKEN" > ~/.netrc diff --git a/test/functional/uplink.auth.spec.js b/test/functional/uplink.auth.spec.js index e3986c44d..a53247ee4 100644 --- a/test/functional/uplink.auth.spec.js +++ b/test/functional/uplink.auth.spec.js @@ -38,7 +38,9 @@ export default function () { }); }; - assert.throws(fnError, 'Auth invalid'); + expect(function ( ) { + fnError(); + }).toThrow(Error('Auth invalid')); }); test('if assigns the header authorization', () => { @@ -100,7 +102,9 @@ export default function () { }) }; - assert.throws(fnError, `Auth type 'null' not allowed`); + expect(function ( ) { + fnError(); + }).toThrow(Error(`Auth type 'null' not allowed`)); }); test('set auth with NPM_TOKEN', () => {