Skip to content

Commit

Permalink
test: fix unused testbed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Jul 29, 2022
1 parent 64679ed commit a6cf5f5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/core/services/preview/preview.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideMockStore } from '@ngrx/store/testing';
import { instance, mock } from 'ts-mockito';

import { ApiService } from 'ish-core/services/api/api.service';

import { PreviewService } from './preview.service';

describe('Preview Service', () => {
let apiServiceMock: ApiService;
let previewService: PreviewService;

beforeEach(() => {
apiServiceMock = mock(ApiService);
TestBed.configureTestingModule({
imports: [RouterTestingModule],
providers: [{ provide: ApiService, useFactory: () => instance(apiServiceMock) }, provideMockStore()],
providers: [provideMockStore()],
});
previewService = TestBed.inject(PreviewService);
});
Expand Down

0 comments on commit a6cf5f5

Please sign in to comment.