Improved book unit tests

This commit is contained in:
konrad 2018-01-16 14:21:02 +01:00 committed by kolaente
parent 97ebfc0207
commit 310d15d078
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -97,11 +97,11 @@ func TestAddOrUpdateBook(t *testing.T) {
assert.Equal(t, testbook.Title, book1updated.Title)
// Delete the book
err = DeleteBookByID(1)
err = DeleteBookByID(book1.ID)
assert.NoError(t, err)
// Check if its gone
_, exists, err = GetBookByID(1)
_, exists, err = GetBookByID(book1.ID)
assert.NoError(t, err)
assert.False(t, exists)
}