mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
chore: fix tests
This commit is contained in:
parent
7e36a9ba12
commit
c41f56d33c
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import { SpecManager } from '../utils/spec-manager';
|
import { SpecManager } from '../utils/spec-manager';
|
||||||
import { BaseComponent } from '../components/base';
|
import { BaseComponent } from '../components/base';
|
||||||
|
import { OptionsService } from '../services/options.service';
|
||||||
|
|
||||||
describe('Redoc components', () => {
|
describe('Redoc components', () => {
|
||||||
describe('BaseComponent', () => {
|
describe('BaseComponent', () => {
|
||||||
|
@ -9,7 +10,7 @@ describe('Redoc components', () => {
|
||||||
let component;
|
let component;
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
specMgr = new SpecManager();
|
specMgr = new SpecManager(new OptionsService());
|
||||||
specMgr._schema = {tags: []};
|
specMgr._schema = {tags: []};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
import { SchemaNormalizer } from './schema-normalizer.service';
|
import { SchemaNormalizer } from './schema-normalizer.service';
|
||||||
import { SpecManager } from '../utils/spec-manager';;
|
import { SpecManager } from '../utils/spec-manager';;
|
||||||
|
import { OptionsService } from '../services/options.service';
|
||||||
|
|
||||||
|
|
||||||
describe('Spec Helper', () => {
|
describe('Spec Helper', () => {
|
||||||
let specMgr:SpecManager = new SpecManager();
|
let specMgr:SpecManager = new SpecManager(new OptionsService());
|
||||||
let normalizer = new SchemaNormalizer(specMgr);
|
let normalizer = new SchemaNormalizer(specMgr);
|
||||||
|
|
||||||
describe('Dereference', () => {
|
describe('Dereference', () => {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import { SpecManager } from '../../lib/utils/spec-manager';
|
import { SpecManager } from '../../lib/utils/spec-manager';
|
||||||
|
import { OptionsService } from '../../lib/services/options.service';
|
||||||
import * as xExtendedDefs from './x-extended-defs.json';
|
import * as xExtendedDefs from './x-extended-defs.json';
|
||||||
|
|
||||||
describe('Utils', () => {
|
describe('Utils', () => {
|
||||||
|
@ -8,7 +9,7 @@ describe('Utils', () => {
|
||||||
let specMgr: SpecManager;
|
let specMgr: SpecManager;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
specMgr = new SpecManager();
|
specMgr = new SpecManager(new OptionsService());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('load should return a promise', ()=> {
|
it('load should return a promise', ()=> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user