]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / layouts / login-layout / login-layout.component.spec.ts
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
5 import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
6 import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
7
8 import { RouterTestingModule } from '@angular/router/testing';
9 import { SharedModule } from '../../../shared/shared.module';
10 import { LoginLayoutComponent } from './login-layout.component';
11
12 describe('LoginLayoutComponent', () => {
13 let component: LoginLayoutComponent;
14 let fixture: ComponentFixture<LoginLayoutComponent>;
15
16 beforeEach(async(() => {
17 TestBed.configureTestingModule({
18 declarations: [LoginLayoutComponent],
19 imports: [
20 BrowserAnimationsModule,
21 BsDropdownModule.forRoot(),
22 BsDatepickerModule.forRoot(),
23 HttpClientTestingModule,
24 RouterTestingModule,
25 SharedModule
26 ]
27 }).compileComponents();
28 }));
29
30 beforeEach(() => {
31 fixture = TestBed.createComponent(LoginLayoutComponent);
32 component = fixture.componentInstance;
33 fixture.detectChanges();
34 });
35
36 it('should create', () => {
37 expect(component).toBeTruthy();
38 });
39 });