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:
parent
596c727a35
commit
ca2e23cf9d
4 changed files with 11 additions and 10 deletions
|
@ -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');
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
@ -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', () => {
|
|
@ -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', () => {
|
Loading…
Reference in a new issue