feat: update kyc tab, branch day register, and dormancy reports
This commit is contained in:
@@ -230,6 +230,23 @@ describe('deriveKycExceptionFields', () => {
|
||||
const both = `${KYC_EXCEPTION_PAN}, ${KYC_EXCEPTION_AADHAAR}`;
|
||||
expect(deriveKycExceptionFields(existingException(false, true, both)).exceptionReason).toBe(KYC_EXCEPTION_PAN);
|
||||
});
|
||||
|
||||
it('closes a record left open by a verification that passed after the exception was written', () => {
|
||||
// A verification writes the exception before calling the vendor, so a check that then passes
|
||||
// leaves `isException` set with the stale reason still loaded into the form's reason list.
|
||||
// Saving such a record has to close it, not re-raise it off its own stale reason.
|
||||
expect(
|
||||
deriveKycExceptionFields({
|
||||
...existingException(true, true, KYC_EXCEPTION_PAN),
|
||||
manualReasons: [KYC_EXCEPTION_PAN]
|
||||
})
|
||||
).toEqual({
|
||||
isException: false,
|
||||
exceptionReason: KYC_EXCEPTION_PAN,
|
||||
exceptionResolved: true,
|
||||
exceptionResolvedOn: TODAY
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('re-opening', () => {
|
||||
|
||||
Reference in New Issue
Block a user