mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
Merge branch 'master' of github.com:verdaccio/verdaccio
This commit is contained in:
commit
c565734b90
3 changed files with 11 additions and 4 deletions
|
@ -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 && \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue