Add application workflow and lead analytics
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user