]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cephfs / cephfs-list / cephfs-list.component.spec.ts
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { Component, Input } from '@angular/core';
3 import { ComponentFixture, TestBed } from '@angular/core/testing';
4 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5
6 import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper';
7 import { CdTableSelection } from '../../../shared/models/cd-table-selection';
8 import { SharedModule } from '../../../shared/shared.module';
9 import { CephfsListComponent } from './cephfs-list.component';
10
11 @Component({ selector: 'cd-cephfs-tabs', template: '' })
12 class CephfsTabsStubComponent {
13 @Input()
14 selection: CdTableSelection;
15 }
16
17 describe('CephfsListComponent', () => {
18 let component: CephfsListComponent;
19 let fixture: ComponentFixture<CephfsListComponent>;
20
21 configureTestBed({
22 imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule],
23 declarations: [CephfsListComponent, CephfsTabsStubComponent],
24 providers: i18nProviders
25 });
26
27 beforeEach(() => {
28 fixture = TestBed.createComponent(CephfsListComponent);
29 component = fixture.componentInstance;
30 fixture.detectChanges();
31 });
32
33 it('should create', () => {
34 expect(component).toBeTruthy();
35 });
36 });