]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/app.component.spec.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / app.component.spec.ts
1 import { NO_ERRORS_SCHEMA } from '@angular/core';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RouterTestingModule } from '@angular/router/testing';
4
5 import { ToastModule } from 'ng2-toastr';
6
7 import { configureTestBed } from '../testing/unit-test-helper';
8 import { AppComponent } from './app.component';
9 import { AuthStorageService } from './shared/services/auth-storage.service';
10
11 describe('AppComponent', () => {
12 let component: AppComponent;
13 let fixture: ComponentFixture<AppComponent>;
14
15 configureTestBed({
16 imports: [RouterTestingModule, ToastModule.forRoot()],
17 declarations: [AppComponent],
18 schemas: [NO_ERRORS_SCHEMA],
19 providers: [AuthStorageService]
20 });
21
22 beforeEach(() => {
23 fixture = TestBed.createComponent(AppComponent);
24 component = fixture.componentInstance;
25 fixture.detectChanges();
26 });
27
28 it('should create', () => {
29 expect(component).toBeTruthy();
30 });
31 });