]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-group/info-group.component.spec.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / info-group / info-group.component.spec.ts
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { configureTestBed } from '../../../../testing/unit-test-helper';
4 import { InfoGroupComponent } from './info-group.component';
5
6 describe('InfoGroupComponent', () => {
7 let component: InfoGroupComponent;
8 let fixture: ComponentFixture<InfoGroupComponent>;
9
10 configureTestBed({
11 declarations: [InfoGroupComponent]
12 });
13
14 beforeEach(() => {
15 fixture = TestBed.createComponent(InfoGroupComponent);
16 component = fixture.componentInstance;
17 });
18
19 it('should create', () => {
20 expect(component).toBeTruthy();
21 });
22
23 it('Setting groupTitle makes title visible', () => {
24 const groupTitle = 'Group Title';
25 component.groupTitle = groupTitle;
26 fixture.detectChanges();
27 const titleDiv = fixture.debugElement.nativeElement.querySelector('.info-group-title');
28
29 expect(titleDiv.textContent).toContain(groupTitle);
30 });
31 });