Skip to content

Commit

Permalink
feature(publish): #535 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mmaul committed Jan 25, 2024
1 parent d543c4d commit fbf871a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion frontend/src/app/modules/shared/service/policy.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { TestBed } from '@angular/core/testing';
import { ApiService } from '@core/api/api.service';
import { AuthService } from '@core/auth/auth.service';
import { KeycloakService } from 'keycloak-angular';

import { PolicyService } from './policy.service';

describe('AssetPublisherService', () => {
let service: PolicyService;
let httpTestingController: HttpTestingController;
let authService: AuthService;

beforeEach(() => {
TestBed.configureTestingModule({});
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [PolicyService, ApiService, KeycloakService, AuthService],
});
service = TestBed.inject(PolicyService);
httpTestingController = TestBed.inject(HttpTestingController);
authService = TestBed.inject(AuthService);
});

afterEach(() => {
httpTestingController.verify();
});

it('should be created', () => {
Expand Down

0 comments on commit fbf871a

Please sign in to comment.