Implemented KYB, compliance decisions, integration, and testing
This commit is contained in:
@@ -96,7 +96,7 @@ test('staff creation is atomic, minimally required, role-bound and strict', asyn
|
||||
assert.equal(m.website, null);
|
||||
assert.equal(m.country, null);
|
||||
assert.equal(m.industry, null);
|
||||
assert.equal(m.checklist.length, 4);
|
||||
assert.equal(m.checklist.length, 3);
|
||||
assert.ok(m.checklist.every((item) => item.state === 'MISSING'));
|
||||
assert.equal(m.events.length, 1);
|
||||
assert.equal(m.activities.length, 1);
|
||||
@@ -313,8 +313,11 @@ test('every rejection role and stage rule is enforced, with terminal outcomes an
|
||||
merchantId: clone,
|
||||
cycle: 1,
|
||||
decision: 'APPROVED',
|
||||
riskLevel: 'LOW',
|
||||
reason: 'Approval retained during commercial closure',
|
||||
submittedById: 'user-head',
|
||||
reviewerId: 'user-compliance',
|
||||
submittedAt: new Date(Date.now() - 1000),
|
||||
decidedAt: new Date(),
|
||||
snapshot: approved.reviews[0].snapshot,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user