test: add finance handler, service, repository tests
All checks were successful
CI / ci (push) Successful in 36s
All checks were successful
CI / ci (push) Successful in 36s
This commit is contained in:
15
internal/service/finance_test.go
Normal file
15
internal/service/finance_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewFinanceService(t *testing.T) {
|
||||
svc := NewFinanceService(nil)
|
||||
if svc == nil {
|
||||
t.Error("expected non-nil FinanceService")
|
||||
}
|
||||
if svc.repo != nil {
|
||||
t.Error("expected nil repo")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user