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