mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
fix: test in menu bulder
This commit is contained in:
parent
0c91eef92f
commit
68fb9e937b
|
@ -10,11 +10,11 @@ describe('Models', () => {
|
||||||
describe('MenuBuilder', () => {
|
describe('MenuBuilder', () => {
|
||||||
let parser;
|
let parser;
|
||||||
|
|
||||||
test('discriminator with one field', () => {
|
test('should resolve pathItems', () => {
|
||||||
const spec = require('../fixtures/3.1/pathItems.json');
|
const spec = require('../fixtures/3.1/pathItems.json');
|
||||||
parser = new OpenAPIParser(spec, undefined, opts);
|
parser = new OpenAPIParser(spec, undefined, opts);
|
||||||
const contentItems = MenuBuilder.buildStructure(parser, opts);
|
const contentItems = MenuBuilder.buildStructure(parser, opts);
|
||||||
expect(contentItems).toHaveLength(2);
|
expect(contentItems).toHaveLength(1);
|
||||||
expect(contentItems[0].items).toHaveLength(2);
|
expect(contentItems[0].items).toHaveLength(2);
|
||||||
expect(contentItems[0].id).toEqual('tag/pet');
|
expect(contentItems[0].id).toEqual('tag/pet');
|
||||||
expect(contentItems[0].name).toEqual('pet');
|
expect(contentItems[0].name).toEqual('pet');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user