]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.spec.ts
8168917dd2928b3ced50d6e4c95abfd32ad84108
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / layouts / workbench-layout / workbench-layout.component.spec.ts
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { NO_ERRORS_SCHEMA } from '@angular/core';
3 import { ComponentFixture, TestBed } from '@angular/core/testing';
4 import { RouterTestingModule } from '@angular/router/testing';
5
6 import { ToastrModule } from 'ngx-toastr';
7
8 import { RbdService } from '~/app/shared/api/rbd.service';
9 import { PipesModule } from '~/app/shared/pipes/pipes.module';
10 import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
11 import { configureTestBed } from '~/testing/unit-test-helper';
12 import { WorkbenchLayoutComponent } from './workbench-layout.component';
13
14 describe('WorkbenchLayoutComponent', () => {
15 let component: WorkbenchLayoutComponent;
16 let fixture: ComponentFixture<WorkbenchLayoutComponent>;
17
18 configureTestBed({
19 imports: [RouterTestingModule, ToastrModule.forRoot(), PipesModule, HttpClientTestingModule],
20 declarations: [WorkbenchLayoutComponent],
21 schemas: [NO_ERRORS_SCHEMA],
22 providers: [AuthStorageService, RbdService]
23 });
24
25 beforeEach(() => {
26 fixture = TestBed.createComponent(WorkbenchLayoutComponent);
27 component = fixture.componentInstance;
28 fixture.detectChanges();
29 });
30
31 it('should create', () => {
32 expect(component).toBeTruthy();
33 });
34 });