0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

test: relocate unit test

This commit is contained in:
Juan Picado @jotadeveloper 2019-05-20 07:41:12 +02:00
parent 596c727a35
commit ca2e23cf9d
No known key found for this signature in database
GPG key ID: 18AC54485952D158
4 changed files with 11 additions and 10 deletions

View file

@ -26,6 +26,7 @@ const parseConfigurationJWTFile = () => {
const FORBIDDEN_VUE: string = 'authorization required to access package vue';
describe('endpoint user auth JWT unit test', () => {
jest.setTimeout(20000);
let app;
let mockRegistry;
const FAKE_TOKEN: string = buildToken(TOKEN_BEARER, 'fake');

View file

@ -1,8 +1,8 @@
let assert = require('assert');
let semverSort = require('../../../src/lib/utils').semverSort;
import {mergeVersions} from '../../../src/lib/metadata-utils';
let semverSort = require('../../../../src/lib/utils').semverSort;
import {mergeVersions} from '../../../../src/lib/metadata-utils';
require('../../../src/lib/logger').setup([]);
require('../../../../src/lib/logger').setup([]);
describe('Storage._merge_versions versions', () => {

View file

@ -2,20 +2,20 @@
import path from 'path';
import _ from 'lodash';
import {spliceURL} from '../../../src/utils/string';
import {parseConfigFile} from '../../../src/lib/utils';
import {spliceURL} from '../../../../src/utils/string';
import {parseConfigFile} from '../../../../src/lib/utils';
import {
getMatchedPackagesSpec,
hasProxyTo,
normalisePackageAccess, sanityCheckUplinksProps,
uplinkSanityCheck
} from '../../../src/lib/config-utils';
import {PACKAGE_ACCESS, ROLES} from '../../../src/lib/constants';
} from '../../../../src/lib/config-utils';
import {PACKAGE_ACCESS, ROLES} from '../../../../src/lib/constants';
describe('Config Utilities', () => {
const parseConfigurationFile = (name) => {
return path.join(__dirname, `../partials/config/yaml/${name}.yaml`);
return path.join(__dirname, `../../partials/config/yaml/${name}.yaml`);
};
describe('uplinkSanityCheck', () => {

View file

@ -1,7 +1,7 @@
let assert = require('assert');
let tag_version = require('../../../src/lib/utils').tagVersion;
let tag_version = require('../../../../src/lib/utils').tagVersion;
require('../../../src/lib/logger').setup([]);
require('../../../../src/lib/logger').setup([]);
describe('tag_version', () => {
test('add new one', () => {