mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30:23 +01:00
rename error code
This commit is contained in:
parent
97e1e971d7
commit
ac8191cb08
2 changed files with 3 additions and 3 deletions
|
@ -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: {
|
||||||
|
|
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue