mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 12:03:44 +03:00
Fix typo in api-info spec
This commit is contained in:
parent
bc9e62141b
commit
76836d0539
|
@ -37,13 +37,13 @@ describe('Redoc components', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('shold init component data', () => {
|
it('should init component data', () => {
|
||||||
expect(component).not.toBeNull();
|
expect(component).not.toBeNull();
|
||||||
expect(component.data).not.toBeNull();
|
expect(component.data).not.toBeNull();
|
||||||
component.data.title.should.be.equal('Swagger Petstore');
|
component.data.title.should.be.equal('Swagger Petstore');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('shold render api name and version', () => {
|
it('should render api name and version', () => {
|
||||||
let nativeElement = getChildDebugElement(fixture.debugElement, 'api-info').nativeElement;
|
let nativeElement = getChildDebugElement(fixture.debugElement, 'api-info').nativeElement;
|
||||||
let headerElement = nativeElement.querySelector('h1');
|
let headerElement = nativeElement.querySelector('h1');
|
||||||
expect(headerElement).toHaveText('Swagger Petstore (1.0.0)');
|
expect(headerElement).toHaveText('Swagger Petstore (1.0.0)');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user