Skip to content

Commit

Permalink
✅ formatが不正な場合は400を返すテスト追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Dec 28, 2024
1 parent ff79bad commit 241b14c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/handler/v2/game_video_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,15 @@ func TestPostGameVideo(t *testing.T) {
isErr: true,
statusCode: http.StatusNotFound,
},
{
description: "SaveGameVideoがErrInvalidFormatなので400",
gameID: uuid.UUID(values.NewGameID()),
reader: bytes.NewReader([]byte("test")),
executeSaveGameVideo: true,
saveGameVideoErr: service.ErrInvalidFormat,
isErr: true,
statusCode: http.StatusBadRequest,
},
{
description: "SaveGameVideoがエラーなので500",
gameID: uuid.UUID(values.NewGameID()),
Expand Down

0 comments on commit 241b14c

Please sign in to comment.