Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkuroki committed Oct 3, 2020
1 parent df0aed6 commit 322d920
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions controller/book_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,9 @@ func TestPostBookDelete(t *testing.T) {
}

func setUpTestData() {
model := &model.Book{
ID: 1,
Title: "Test1",
Isbn: "123-123-123-1",
CategoryID: 1,
Category: &model.Category{ID: 1, Name: "技術書"},
FormatID: 1,
Format: &model.Format{ID: 1, Name: "書籍"},
}
model := model.NewBook("Test1", "123-123-123-1", 1, 1)
repo := repository.GetRepository()
_, _ = model.Save(repo)
_, _ = model.Create(repo)
}

func createRegDto() *dto.RegBookDto {
Expand Down

0 comments on commit 322d920

Please sign in to comment.