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 759667986..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 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', () => {