Skip to content

Commit

Permalink
Fix create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiefdhurst committed Aug 3, 2018
1 parent baa92bf commit 5c5983e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/controller/apiv1/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (

func TestCreate_Run(t *testing.T) {
db := &database.MockSqlite{}
db.Result = &database.MockResult{}
db.Rows = &database.MockRowsEmpty{}
container := &app.Container{Db: db}
response := controller.NewMockResponse()
response.Reset()
Expand Down
2 changes: 2 additions & 0 deletions internal/app/controller/web/new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (

func TestNew_Run(t *testing.T) {
db := &database.MockSqlite{}
db.Result = &database.MockResult{}
db.Rows = &database.MockRowsEmpty{}
container := &app.Container{Db: db}
response := controller.NewMockResponse()
controller := &New{}
Expand Down

0 comments on commit 5c5983e

Please sign in to comment.