1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

test(unit): relocate unit test

This commit is contained in:
Juan Picado @jotadeveloper 2018-01-25 23:31:47 +01:00
parent d9a008e881
commit a5ac23ef14
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -3,13 +3,13 @@ import _ from 'lodash';
import path from 'path';
import rimraf from 'rimraf';
import configDefault from '../partials/config';
import Config from '../../../src/lib/config';
import Storage from '../../../src/lib/storage';
import Auth from '../../../src/lib/auth';
import indexAPI from '../../../src/api/index';
import configDefault from './partials/config';
import Config from '../../src/lib/config';
import Storage from '../../src/lib/storage';
import Auth from '../../src/lib/auth';
import indexAPI from '../../src/api/index';
require('../../../src/lib/logger').setup([]);
require('../../src/lib/logger').setup([]);
describe('endpoint unit test', () => {
let config;
@ -19,7 +19,7 @@ describe('endpoint unit test', () => {
jest.setTimeout(500000);
beforeAll(function(done) {
const store = path.join(__dirname, '../partials/store/test-storage');
const store = path.join(__dirname, './partials/store/test-storage');
rimraf(store, () => {
const configForTest = _.clone(configDefault);
configForTest.auth = {