feat: support credit transfers and precious metal valuations
This commit is contained in:
1 parent
425b45c91a
commit
518aea1e59
39 files changed
+1572
-77
No files matched your search
@@ -141,15 +141,15 @@ test('transfers are atomic, scoped, retry-safe, decimal exact and included in ba
|
||||
);
|
||||
assert.equal((await call('/settings', a.cookie, 'PATCH', { showNotes: 'false' })).status, 400);
|
||||
const debt = await position(a.cookie, '信用卡', '10', 'CNY', 'liability');
|
||||
const creditTransfer = await call('/transfers', a.cookie, 'POST', {
|
||||
...request,
|
||||
requestId: randomUUID(),
|
||||
targetId: debt,
|
||||
});
|
||||
assert.equal(creditTransfer.status, 201);
|
||||
assert.equal(
|
||||
(
|
||||
await call('/transfers', a.cookie, 'POST', {
|
||||
...request,
|
||||
requestId: randomUUID(),
|
||||
targetId: debt,
|
||||
})
|
||||
).status,
|
||||
400,
|
||||
(await call('/transfers/' + creditTransfer.data.id, a.cookie, 'DELETE')).status,
|
||||
200,
|
||||
);
|
||||
assert.equal(
|
||||
(
|
||||
|
||||
Reference in new issue
Block a user