Add application workflow and lead analytics
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s

This commit is contained in:
2026-10-23 20:45:48 +01:00
parent d0074aea46
commit 1147bc5697
35 changed files with 4337 additions and 131 deletions
+14
View File
@@ -118,4 +118,18 @@ func TestMergeCapture(t *testing.T) {
t.Fatalf("the same note was appended twice: %q", *app.Notes)
}
})
t.Run("structured metadata is filled without overwriting corrections", func(t *testing.T) {
app := models.JobApplication{Status: "applied", SalaryRange: strPtr("£50k")}
in := JobCaptureInput{SalaryRange: "£70k", WorkArrangement: "Hybrid", ApplicationSource: "LinkedIn", ResumeVersion: "CV-1", RequisitionID: "REQ-9"}
if !MergeCapture(&app, in, now) {
t.Fatal("expected metadata to be added")
}
if *app.SalaryRange != "£50k" || *app.WorkArrangement != "Hybrid" || *app.ApplicationSource != "LinkedIn" || *app.ResumeVersion != "CV-1" || *app.RequisitionID != "REQ-9" {
t.Fatalf("metadata merge = %+v", app)
}
if MergeCapture(&app, in, now) {
t.Fatal("same metadata should not cause another change")
}
})
}