0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

chore: storage test path fix

This commit is contained in:
Juan Picado @jotadeveloper 2018-06-28 08:26:07 +02:00
parent c6740feec3
commit 6239606ce1
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
// @flow // @flow
import _ from 'lodash'; import _ from 'lodash';
import path from 'path';
// $FlowFixMe // $FlowFixMe
import configExample from '../partials/config/index'; import configExample from '../partials/config/index';
import AppConfig from '../../../src/lib/config'; import AppConfig from '../../../src/lib/config';
@ -18,7 +19,7 @@ setup(configExample.logs);
const mockServerPort: number = 55548; const mockServerPort: number = 55548;
const generateStorage = async function(port = mockServerPort, configDefault = configExample) { const generateStorage = async function(port = mockServerPort, configDefault = configExample) {
const storageConfig = _.clone(configDefault); const storageConfig = _.clone(configDefault);
const storage = `./unit/partials/store/test-storage-store.spec`; const storage = path.join(__dirname, '../partials/store/test-storage-store.spec');
storageConfig.self_path = __dirname; storageConfig.self_path = __dirname;
storageConfig.storage = storage; storageConfig.storage = storage;
storageConfig.uplinks = { storageConfig.uplinks = {

View file

@ -52,7 +52,7 @@ const config = {
}, },
}, },
logs: [ logs: [
{type: 'stdout', format: 'pretty', level: 'info'}, {type: 'stdout', format: 'pretty', level: 'warn'},
], ],
}; };