diff --git a/test/test_integration/create_note_handler_test.go b/test/test_integration/create_note_handler_test.go index 55be5d7..15c67d9 100644 --- a/test/test_integration/create_note_handler_test.go +++ b/test/test_integration/create_note_handler_test.go @@ -13,16 +13,22 @@ import ( func TestCreateNoteHandlerOnSucess(t *testing.T) { // Arrange + // TODO: move to test vars and main_test.go db, err := sql.Open("sqlite", test.NewTestVars().DbPath) if err != nil { t.Fatalf("failed to open database: %v", err) } defer db.Close() + uow := repositories.NewUnitOfWork(db) handler := handlers.NewCreateNoteHandler(uow) + // TODO: add to test vars and move to main_test.go + ctx := test.Context() + // Act + // Assert } diff --git a/test/test_vars.go b/test/test_vars.go index 01305d3..1ad4977 100644 --- a/test/test_vars.go +++ b/test/test_vars.go @@ -2,6 +2,7 @@ package test import "os" +// todo: move into main_test.go and add utility functions in there type TestVars struct { DbPath string } @@ -12,3 +13,4 @@ func NewTestVars() *TestVars { } } +