Added FromEmail Test

pull/1484/head
bjb28 2019-06-15 00:06:54 -04:00
parent c55dd9effa
commit a1e6566284
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func (s *ModelsSuite) TestNewTemplateContext(c *check.C) {
TrackingURL: fmt.Sprintf("%s/track?rid=%s", ctx.URL, r.RId),
From: "From Address",
RId: r.RId,
FromEmail: "from@example.com",
}
expected.Tracker = "<img alt='' style='display: none' src='" + expected.TrackingURL + "'/>"
got, err := NewPhishingTemplateContext(ctx, r.BaseRecipient, r.RId)