251209:1453 Frontend: progress nest = UAT & Bug Fixing
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-09 14:53:42 +07:00
parent 8aceced902
commit aa96cd90e3
125 changed files with 11052 additions and 785 deletions

View File

@@ -117,7 +117,7 @@ describe('DocumentNumberingService', () => {
afterEach(async () => {
jest.clearAllMocks();
service.onModuleDestroy();
// Don't call onModuleDestroy - redisClient is mocked and would cause undefined error
});
it('should be defined', () => {
@@ -145,7 +145,7 @@ describe('DocumentNumberingService', () => {
const result = await service.generateNextNumber(mockContext);
expect(result).toBe('000001'); // Default padding 6
expect(result).toBe('0001'); // Default padding 4 (see replaceTokens method)
expect(counterRepo.save).toHaveBeenCalled();
expect(auditRepo.save).toHaveBeenCalled();
});