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