feat: suggest a salary expectation when the posting states none

This commit is contained in:
2026-11-25 10:53:29 +01:00
parent 50382c0c10
commit ce0190be21
4 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -248,12 +248,13 @@ func TestWriteNoteNeverOverwrites(t *testing.T) {
func TestRenderNote(t *testing.T) {
pkg := &Package{
Company: "Acme", Title: "Backend Engineer", Verdict: "Apply", FitScore: 82, VerdictReason: "Strong match.",
Location: "Utrecht", Strengths: []string{"Go at Ghaaf"}, Gaps: []string{"No Dutch"}, CoverLetter: "Dear hiring team,\n\nHello.",
Location: "Utrecht", SalarySuggestion: "Estimate: write 85,000.", Strengths: []string{"Go at Ghaaf"}, Gaps: []string{"No Dutch"}, CoverLetter: "Dear hiring team,\n\nHello.",
}
note := renderNote(pkg, "https://x.test/job", time.Date(2026, 11, 24, 10, 0, 0, 0, time.UTC))
for _, want := range []string{
"moc: \"[[00-Job Hunt]]\"\ncreated: 2026-11-24\ncompany: \"Acme\"\nrole: \"Backend Engineer\"\nfit: 82\nverdict: \"apply\"\nlocation: \"Utrecht\"\nposting: \"https://x.test/job\"\nstatus: \"new\"\n---", "# Acme - Backend Engineer", "- [ ] Review and decide: **apply**, fit 82/100",
"- **Posting:** https://x.test/job", "## Strengths\n- Go at Ghaaf", "## Gaps\n- No Dutch",
"- **Posting:** https://x.test/job", "- **Salary expectation to write:** Estimate: write 85,000.",
"## Strengths\n- Go at Ghaaf", "## Gaps\n- No Dutch",
"## Cover letter draft\nDear hiring team,", "## Related\n- [[00-Job Hunt|Job Hunt]]\n- [[CV]]",
} {
if !strings.Contains(note, want) {