]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
a6232ee082aad003d5ed5292ac267ec214ea26ff
[ceph-ci.git] /
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { UpgradeComponent } from '../upgrade.component';
4 import { configureTestBed } from '~/testing/unit-test-helper';
5 import { UpgradeService } from '~/app/shared/api/upgrade.service';
6 import { HttpClientTestingModule } from '@angular/common/http/testing';
7 import { NO_ERRORS_SCHEMA } from '@angular/core';
8 import { SharedModule } from '~/app/shared/shared.module';
9 import { ToastrModule } from 'ngx-toastr';
10
11 describe('UpgradeComponent', () => {
12   let component: UpgradeComponent;
13   let fixture: ComponentFixture<UpgradeComponent>;
14
15   configureTestBed({
16     imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot()],
17     schemas: [NO_ERRORS_SCHEMA],
18     declarations: [UpgradeComponent],
19     providers: [UpgradeService]
20   });
21
22   beforeEach(() => {
23     fixture = TestBed.createComponent(UpgradeComponent);
24     component = fixture.componentInstance;
25     fixture.detectChanges();
26   });
27
28   it('should create', () => {
29     expect(component).toBeTruthy();
30   });
31 });