Implemented the database, authentication, access rules, and seed data
This commit is contained in:
@@ -14,8 +14,6 @@ test('every role receives its exact merchant scope', () => {
|
||||
assert.deepEqual(merchantScope({ role: 'ACCOUNT_MANAGER', id: 'manager-1' }), {
|
||||
ownerId: 'manager-1',
|
||||
});
|
||||
assert.deepEqual(merchantScope({ role: 'COMPLIANCE_OFFICER' }), {
|
||||
status: { in: ['KYB', 'COMPLIANCE_REVIEW'] },
|
||||
});
|
||||
assert.deepEqual(merchantScope({ role: 'COMPLIANCE_OFFICER' }), {});
|
||||
assert.deepEqual(merchantScope({ role: 'unexpected' }), { id: '__no_access__' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user