Files
job-tracker/internal/services/job_application_events_test.go
T
adamf 1147bc5697
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s
Add application workflow and lead analytics
2026-10-23 20:45:48 +01:00

20 lines
409 B
Go

package services
import (
"errors"
"testing"
"gorm.io/gorm"
)
func TestRecordApplicationEventRequiresKind(t *testing.T) {
_, err := RecordApplicationEvent(&gorm.DB{}, 42, ApplicationEventInput{})
var inputErr *JobInputError
if !errors.As(err, &inputErr) {
t.Fatalf("error = %v, want JobInputError", err)
}
if inputErr.Error() != "event kind is required" {
t.Fatalf("error = %q", inputErr)
}
}