16 lines
237 B
Go
16 lines
237 B
Go
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")
|
|
}
|
|
}
|