fix(users/show): ユーザーが見つからなかった場合に404ステータスコードを返す (#10344)
* fix(users/show): ユーザーが見つからなかった場合に404ステータスコードを返す * test(users/show): ステータスコードの期待値を修正
This commit is contained in:
parent
3014e3e5f8
commit
eb5781465b
2 changed files with 3 additions and 2 deletions
|
@ -162,14 +162,14 @@ describe('Endpoints', () => {
|
|||
const res = await api('/users/show', {
|
||||
userId: '000000000000000000000000',
|
||||
});
|
||||
assert.strictEqual(res.status, 400);
|
||||
assert.strictEqual(res.status, 404);
|
||||
});
|
||||
|
||||
test('間違ったIDで怒られる', async () => {
|
||||
const res = await api('/users/show', {
|
||||
userId: 'kyoppie',
|
||||
});
|
||||
assert.strictEqual(res.status, 400);
|
||||
assert.strictEqual(res.status, 404);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue