Skip to content

Commit

Permalink
fix: import Mat* & BrowserAnimations dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Jul 24, 2024
1 parent f7c6502 commit 4529911
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/login/login.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { Router } from '@angular/router';
import { AuthenticationService } from '../../services/authentication.service';
import { ChangeDetectorRef } from '@angular/core';
import { ReactiveFormsModule, FormControl } from '@angular/forms';
import { MatCardModule } from '@angular/material/card'; // Import MatCardModule
import { MatFormFieldModule } from '@angular/material/form-field'; // Import MatFormFieldModule
import { MatInputModule } from '@angular/material/input'; // Import MatInputModule
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // Import BrowserAnimationsModule

describe('LoginComponent', () => {
let component: LoginComponent;
Expand All @@ -19,14 +23,20 @@ describe('LoginComponent', () => {

await TestBed.configureTestingModule({
declarations: [ LoginComponent ],
imports: [ ReactiveFormsModule ],
imports: [
ReactiveFormsModule,
MatCardModule, // Add MatCardModule to imports
MatFormFieldModule, // Add MatFormFieldModule to imports
MatInputModule, // Add MatInputModule to imports
BrowserAnimationsModule // Add BrowserAnimationsModule for Angular Material animations
],
providers: [
{ provide: Router, useValue: routerSpy },
{ provide: AuthenticationService, useValue: authServiceSpy },
{ provide: ChangeDetectorRef, useValue: cdSpy }
]
})
.compileComponents();
.compileComponents();
});

beforeEach(() => {
Expand Down

0 comments on commit 4529911

Please sign in to comment.