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 { BaseComponent } from '../components/base';
|
||||
import { OptionsService } from '../services/options.service';
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('BaseComponent', () => {
|
||||
|
@ -9,7 +10,7 @@ describe('Redoc components', () => {
|
|||
let component;
|
||||
|
||||
beforeAll(() => {
|
||||
specMgr = new SpecManager();
|
||||
specMgr = new SpecManager(new OptionsService());
|
||||
specMgr._schema = {tags: []};
|
||||
});
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
'use strict';
|
||||
import { SchemaNormalizer } from './schema-normalizer.service';
|
||||
import { SpecManager } from '../utils/spec-manager';;
|
||||
import { OptionsService } from '../services/options.service';
|
||||
|
||||
|
||||
describe('Spec Helper', () => {
|
||||
let specMgr:SpecManager = new SpecManager();
|
||||
let specMgr:SpecManager = new SpecManager(new OptionsService());
|
||||
let normalizer = new SchemaNormalizer(specMgr);
|
||||
|
||||
describe('Dereference', () => {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
import { SpecManager } from '../../lib/utils/spec-manager';
|
||||
import { OptionsService } from '../../lib/services/options.service';
|
||||
import * as xExtendedDefs from './x-extended-defs.json';
|
||||
|
||||
describe('Utils', () => {
|
||||
|
@ -8,7 +9,7 @@ describe('Utils', () => {
|
|||
let specMgr: SpecManager;
|
||||
|
||||
beforeEach(() => {
|
||||
specMgr = new SpecManager();
|
||||
specMgr = new SpecManager(new OptionsService());
|
||||
});
|
||||
|
||||
it('load should return a promise', ()=> {
|
||||
|
|
Loading…
Reference in New Issue
Block a user