Skip to content

Commit

Permalink
Remove await from TestBed
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Jun 3, 2024
2 parents edfd1d1 + dfdc556 commit 34d5b52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
TestBed.configureTestingModule({
imports: [AppComponent],
}).compileComponents();
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/edit/edit.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('EditComponent', () => {
mockActivatedRoute = new MockActivatedRoute({id: 1});
mockRouter = new MockRouter();

await TestBed.configureTestingModule({
TestBed.configureTestingModule({
declarations: [],
imports: [FormsModule],
providers: [
Expand Down
2 changes: 1 addition & 1 deletion src/app/search/search.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('SearchComponent', () => {
beforeEach(async () => {
mockActivatedRoute = new MockActivatedRoute({term: 'nikola'});

await TestBed.configureTestingModule({
TestBed.configureTestingModule({
declarations: [],
imports: [FormsModule, RouterTestingModule],
providers: [
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/search/search.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('SearchService', () => {
let httpMock: HttpTestingController;

beforeEach(async () => {
await TestBed.configureTestingModule({
TestBed.configureTestingModule({
imports: [],
providers: [SearchService, provideHttpClient(withInterceptorsFromDi()), provideHttpClientTesting()]
});
Expand Down

0 comments on commit 34d5b52

Please sign in to comment.