Skip to content

Commit

Permalink
Format after update
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed May 23, 2024
1 parent 14de02b commit c34b596
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions src/app/edit/edit.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ describe('EditComponent', () => {
mockRouter = new MockRouter();

await TestBed.configureTestingModule({
declarations: [],
imports: [FormsModule],
providers: [
{ provide: ActivatedRoute, useValue: mockActivatedRoute },
{ provide: Router, useValue: mockRouter },
declarations: [],
imports: [FormsModule],
providers: [
{provide: ActivatedRoute, useValue: mockActivatedRoute},
{provide: Router, useValue: mockRouter},
provideHttpClient(withInterceptorsFromDi()),
provideHttpClientTesting()
]
}).compileComponents();
]
}).compileComponents();

mockSearchService = TestBed.inject(SearchService);
});
Expand Down
12 changes: 6 additions & 6 deletions src/app/search/search.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ describe('SearchComponent', () => {
mockActivatedRoute = new MockActivatedRoute({term: 'nikola'});

await TestBed.configureTestingModule({
declarations: [],
imports: [FormsModule, RouterTestingModule],
providers: [
{ provide: ActivatedRoute, useValue: mockActivatedRoute },
declarations: [],
imports: [FormsModule, RouterTestingModule],
providers: [
{provide: ActivatedRoute, useValue: mockActivatedRoute},
provideHttpClient(withInterceptorsFromDi()),
provideHttpClientTesting()
]
}).compileComponents();
]
}).compileComponents();
});

beforeEach(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/app/shared/search/search.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ describe('SearchService', () => {

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

service = TestBed.inject(SearchService);
httpMock = TestBed.inject(HttpTestingController);
Expand Down

0 comments on commit c34b596

Please sign in to comment.