|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
|
|
|
|
|
|
import { LoginComponent } from './login.component';
|
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
|
|
|
|
|
|
describe('LoginComponent', () => {
|
|
|
|
|
let component: LoginComponent;
|
|
|
|
@ -8,10 +10,9 @@ describe('LoginComponent', () => {
|
|
|
|
|
|
|
|
|
|
beforeEach(async () => {
|
|
|
|
|
await TestBed.configureTestingModule({
|
|
|
|
|
imports: [LoginComponent]
|
|
|
|
|
})
|
|
|
|
|
.compileComponents();
|
|
|
|
|
|
|
|
|
|
imports: [LoginComponent, HttpClientModule, NoopAnimationsModule],
|
|
|
|
|
}).compileComponents();
|
|
|
|
|
|
|
|
|
|
fixture = TestBed.createComponent(LoginComponent);
|
|
|
|
|
component = fixture.componentInstance;
|
|
|
|
|
fixture.detectChanges();
|
|
|
|
|