This commit is contained in:
bronku 2025-03-31 07:32:17 +02:00
parent c32ecbff8f
commit 3136739f4e
53 changed files with 129 additions and 1892 deletions

View file

@ -63,7 +63,7 @@ func TestStore(t *testing.T) {
updatedCake.ID = 10
_, err = s.SaveCake(updatedCake)
if err == nil {
t.Error("did not return an error when attempted to update non existant cake")
t.Error("did not return an error when attempted to update non existent cake")
}
// get cakes
@ -105,7 +105,7 @@ func TestStore(t *testing.T) {
selectedCake, err = s.GetCake(-1)
if err == nil {
t.Error("no error getting a non-existant cake")
t.Error("no error getting a non-existent cake")
}
// create new order
@ -166,7 +166,7 @@ func TestStore(t *testing.T) {
updatedOrder.ID = 10
_, err = s.SaveOrder(updatedOrder)
if err == nil {
t.Error("did not return an error when attempted to update non existant cake")
t.Error("did not return an error when attempted to update non existent cake")
}
// get orders