260318:1635 Fix UUID #10
Build and Deploy / deploy (push) Failing after 10m2s

This commit is contained in:
admin
2026-03-18 16:35:00 +07:00
parent c1cbecf5aa
commit 5a1eeca7f3
7 changed files with 46 additions and 20 deletions
@@ -144,7 +144,7 @@ describe('DocumentNumberingService', () => {
it('voidAndReplace should verify audit log exists', async () => {
const auditRepo = module.get(getRepositoryToken(DocumentNumberAudit));
(auditRepo.findOne as jest.Mock).mockResolvedValue({
generatedNumber: 'DOC-001',
documentNumber: 'DOC-001',
counterKey: JSON.stringify({ projectId: 1, correspondenceTypeId: 1 }),
templateUsed: 'test',
});
@@ -162,7 +162,7 @@ describe('DocumentNumberingService', () => {
it('cancelNumber should log cancellation', async () => {
const auditRepo = module.get(getRepositoryToken(DocumentNumberAudit));
(auditRepo.findOne as jest.Mock).mockResolvedValue({
generatedNumber: 'DOC-002',
documentNumber: 'DOC-002',
counterKey: {},
});
(auditRepo.save as jest.Mock).mockResolvedValue({ id: 3 });