mirror of
https://github.com/Redocly/redoc.git
synced 2025-05-29 18:23:04 +03:00
Sort tests by groups
This commit is contained in:
parent
b06ac81937
commit
53f7f3a007
|
@ -12,7 +12,7 @@ import {
|
|||
|
||||
import {Tabs, Tab} from 'lib/common/components/Tabs/tabs';
|
||||
|
||||
|
||||
describe('Common components', () => {
|
||||
describe('Tabs Component', () => {
|
||||
let builder;
|
||||
let component;
|
||||
|
@ -63,6 +63,7 @@ describe('Tabs Component', () => {
|
|||
tab2.active.should.be.true;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/** Test component that contains an ApiInfo. */
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
|
||||
import Zippy from 'lib/common/components/Zippy/zippy';
|
||||
|
||||
|
||||
describe('Common components', () => {
|
||||
describe('Zippy Component', () => {
|
||||
let builder;
|
||||
let component;
|
||||
|
@ -90,6 +90,7 @@ describe('Zippy Component', () => {
|
|||
testComponent.clickCount.should.be.equal(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/** Test component that contains an ApiInfo. */
|
||||
|
|
|
@ -15,6 +15,7 @@ import ApiInfo from 'lib/components/ApiInfo/api-info';
|
|||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('ApiInfo Component', () => {
|
||||
let builder;
|
||||
let component;
|
||||
|
@ -48,6 +49,7 @@ describe('ApiInfo Component', () => {
|
|||
expect(headerElement).toHaveText('Swagger Petstore (1.0.0)');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/** Test component that contains an ApiInfo. */
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import Method from 'lib/components/Method/method';
|
||||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('Method Component', () => {
|
||||
let builder;
|
||||
let component;
|
||||
|
@ -49,6 +49,7 @@ describe('Method Component', () => {
|
|||
component.data.methodInfo.tags.should.be.empty;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/** Test component that contains a Method. */
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import MethodsList from 'lib/components/MethodsList/methods-list';
|
||||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('ApiInfo Component', () => {
|
||||
let builder;
|
||||
let component;
|
||||
|
@ -49,7 +49,7 @@ describe('ApiInfo Component', () => {
|
|||
component.data.tags[1].methods.should.have.lengthOf(2);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/** Test component that contains an ApiInfo. */
|
||||
@Component({selector: 'test-app'})
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import Redoc from 'lib/components/Redoc/redoc';
|
||||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('Redoc Component', () => {
|
||||
let builder;
|
||||
beforeEachProviders(() => [
|
||||
|
@ -41,7 +41,7 @@ describe('Redoc Component', () => {
|
|||
}, err => done.fail(err));
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/** Test component that contains a Redoc. */
|
||||
@Component({selector: 'test-app'})
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
import {BaseComponent} from 'lib/components/base';
|
||||
|
||||
describe('Redoc components', () => {
|
||||
describe('BaseComponent', () => {
|
||||
let schemaMgr;
|
||||
let component;
|
||||
|
@ -195,3 +196,4 @@ describe('BaseComponent', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import {JsonPointer} from 'lib/utils/JsonPointer';
|
||||
// test extended JsonPointer
|
||||
|
||||
describe('Utils', () => {
|
||||
describe('JsonPointer', () => {
|
||||
it('should return correct base name', ()=> {
|
||||
JsonPointer.baseName('/level1/level2/name').should.be.equal('name');
|
||||
|
@ -24,3 +24,4 @@ describe('JsonPointer', () => {
|
|||
JsonPointer.join('#/level1', ['level2', 'name']).should.be.equal('/level1/level2/name');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
import SchemaManager from 'lib/utils/SchemaManager';
|
||||
describe('Utils', () => {
|
||||
describe('Schema manager', () => {
|
||||
let schemaMgr;
|
||||
|
||||
|
@ -225,3 +226,4 @@ describe('Schema manager', () => {
|
|||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
import {statusCodeType} from 'lib/utils/helpers';
|
||||
describe('Utils', () => {
|
||||
describe('statusCodeType', () => {
|
||||
it('Should return info for status codes within 100 and 200', ()=> {
|
||||
statusCodeType(100).should.be.equal('info');
|
||||
|
@ -29,3 +30,4 @@ describe('statusCodeType', () => {
|
|||
(() => statusCodeType(600)).should.throw('invalid HTTP code');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import {KeysPipe, ValuesPipe, JsonPointerEscapePipe, MarkedPipe} from 'lib/utils/pipes';
|
||||
|
||||
describe('Pipes', () => {
|
||||
describe('KeysPipe and ValuesPipe', () => {
|
||||
let obj;
|
||||
var keysPipe, valuesPipe;
|
||||
|
@ -104,3 +105,4 @@ describe('MarkedPipe', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user