1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01: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

@ -1,6 +1,7 @@
// @flow
import _ from 'lodash';
import path from 'path';
// $FlowFixMe
import configExample from '../partials/config/index';
import AppConfig from '../../../src/lib/config';
@ -18,7 +19,7 @@ setup(configExample.logs);
const mockServerPort: number = 55548;
const generateStorage = async function(port = mockServerPort, configDefault = configExample) {
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.storage = storage;
storageConfig.uplinks = {

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