Skip to content

Commit

Permalink
Fix API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trslater committed Nov 5, 2024
1 parent 217308f commit f51b01a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { ValidatedApplicationSubmission } from './application-submission-validat
import { ApplicationSubmission } from './application-submission.entity';
import { ApplicationSubmissionService } from './application-submission.service';
import { NaruSubtype } from './naru-subtype/naru-subtype.entity';
import { ApplicationTagService } from '../../alcs/application/application-tag/application-tag.service';

describe('ApplicationSubmissionService', () => {
let service: ApplicationSubmissionService;
Expand All @@ -41,6 +42,7 @@ describe('ApplicationSubmissionService', () => {
>;
let mockNaruSubtypeRepository: DeepMocked<Repository<NaruSubtype>>;
let mockApplicationService: DeepMocked<ApplicationService>;
let mockApplicationTagService: DeepMocked<ApplicationTagService>;
let mockLGService: DeepMocked<LocalGovernmentService>;
let mockAppDocService: DeepMocked<ApplicationDocumentService>;
let mockGenerateSubmissionDocumentService: DeepMocked<GenerateSubmissionDocumentService>;
Expand All @@ -54,6 +56,7 @@ describe('ApplicationSubmissionService', () => {
mockRepository = createMock();
mockStatusRepository = createMock();
mockApplicationService = createMock();
mockApplicationTagService = createMock();
mockLGService = createMock();
mockAppDocService = createMock();
mockGenerateSubmissionDocumentService = createMock();
Expand All @@ -75,6 +78,10 @@ describe('ApplicationSubmissionService', () => {
providers: [
ApplicationSubmissionService,
ApplicationSubmissionProfile,
{
provide: ApplicationTagService,
useValue: mockApplicationTagService,
},
{
provide: getRepositoryToken(ApplicationSubmission),
useValue: mockRepository,
Expand Down

0 comments on commit f51b01a

Please sign in to comment.