feat: suggest a salary expectation when the posting states none
This commit is contained in:
+3
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user