diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts new file mode 100644 index 000000000..793651081 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts @@ -0,0 +1,35 @@ +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { Component, Input } from '@angular/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; + +import { CdTableSelection } from '~/app/shared/models/cd-table-selection'; +import { SharedModule } from '~/app/shared/shared.module'; +import { configureTestBed } from '~/testing/unit-test-helper'; +import { CephfsListComponent } from './cephfs-list.component'; + +@Component({ selector: 'cd-cephfs-tabs', template: '' }) +class CephfsTabsStubComponent { + @Input() + selection: CdTableSelection; +} + +describe('CephfsListComponent', () => { + let component: CephfsListComponent; + let fixture: ComponentFixture<CephfsListComponent>; + + configureTestBed({ + imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule], + declarations: [CephfsListComponent, CephfsTabsStubComponent] + }); + + beforeEach(() => { + fixture = TestBed.createComponent(CephfsListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); |