rename error code

This commit is contained in:
Namekuji 2023-04-21 09:19:15 -04:00
parent 97e1e971d7
commit ac8191cb08
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ export const meta = {
destinationAccountForbids: { destinationAccountForbids: {
message: message:
'Destination account doesn\'t have proper \'Known As\' alias, or has already moved.', 'Destination account doesn\'t have proper \'Known As\' alias, or has already moved.',
code: 'REMOTE_ACCOUNT_FORBIDS', code: 'DESTINATION_ACCOUNT_FORBIDS',
id: 'b5c90186-4ab0-49c8-9bba-a1f766282ba4', id: 'b5c90186-4ab0-49c8-9bba-a1f766282ba4',
}, },
rootForbidden: { rootForbidden: {

View file

@ -251,7 +251,7 @@ describe('Account Move', () => {
}, alice); }, alice);
assert.strictEqual(res.status, 400); assert.strictEqual(res.status, 400);
assert.strictEqual(res.body.error.code, 'REMOTE_ACCOUNT_FORBIDS'); assert.strictEqual(res.body.error.code, 'DESTINATION_ACCOUNT_FORBIDS');
assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4'); assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4');
}); });
@ -310,7 +310,7 @@ describe('Account Move', () => {
}, bob); }, bob);
assert.strictEqual(res.status, 400); assert.strictEqual(res.status, 400);
assert.strictEqual(res.body.error.code, 'REMOTE_ACCOUNT_FORBIDS'); assert.strictEqual(res.body.error.code, 'DESTINATION_ACCOUNT_FORBIDS');
assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4'); assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4');
}); });