Skip to content

Commit

Permalink
Update email notification subject in create job test
Browse files Browse the repository at this point in the history
  • Loading branch information
devesh711 committed Oct 7, 2024
1 parent c766e21 commit 06c6e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/server/routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ func TestCreateJob(t *testing.T) {
assert.Equal(t, 1, len(svcmock.tweets))
assert.Equal(t, 1, len(svcmock.slacks))

assert.Equal(t, "Job Created!", svcmock.emails[0].subject)
expectedSubject := fmt.Sprintf("Job %s Created!", tt.values["position"][0])
assert.Equal(t, expectedSubject, svcmock.emails[0].subject)
assert.Equal(t, tt.values["email"][0], svcmock.emails[0].recipient)
assert.Contains(t, svcmock.emails[0].body, server.SignedJobRoute(newJob, conf))

Expand Down

0 comments on commit 06c6e0b

Please sign in to comment.