mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-15 02:32:20 +03:00
fix test
This commit is contained in:
parent
d141f67559
commit
cd52d81b46
|
@ -13,7 +13,9 @@ import {
|
||||||
|
|
||||||
import ApiInfo from 'lib/components/ApiInfo/api-info';
|
import ApiInfo from 'lib/components/ApiInfo/api-info';
|
||||||
import SchemaManager from 'lib/utils/SchemaManager';
|
import SchemaManager from 'lib/utils/SchemaManager';
|
||||||
|
import OptionsManager from 'lib/options';
|
||||||
|
|
||||||
|
let optsMgr = new OptionsManager();
|
||||||
|
|
||||||
describe('Redoc components', () => {
|
describe('Redoc components', () => {
|
||||||
describe('ApiInfo Component', () => {
|
describe('ApiInfo Component', () => {
|
||||||
|
@ -21,7 +23,8 @@ describe('Redoc components', () => {
|
||||||
let component;
|
let component;
|
||||||
let fixture;
|
let fixture;
|
||||||
beforeEachProviders(() => [
|
beforeEachProviders(() => [
|
||||||
provide(SchemaManager, {useValue: new SchemaManager()})
|
provide(SchemaManager, {useValue: new SchemaManager()}),
|
||||||
|
provide(OptionsManager, {useValue: optsMgr})
|
||||||
]);
|
]);
|
||||||
beforeEach(injectAsync([TestComponentBuilder, SchemaManager], (tcb, schemaMgr) => {
|
beforeEach(injectAsync([TestComponentBuilder, SchemaManager], (tcb, schemaMgr) => {
|
||||||
builder = tcb;
|
builder = tcb;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user