Skip to content

Commit 2d1482d

Browse files
author
ece-jacob-scott
committed
[feature] Removed Subject line from no subject line test
1 parent 1067405 commit 2d1482d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ Describe "Send-MailMessage" -Tags CI, RequireSudoOnUnix {
112112

113113
It @ItArgs {
114114
$body = "Greetings from me."
115-
$subject = "Test message"
116115
Send-MailMessage -To $address -From $address -ReplyTo $address -Body $body -SmtpServer 127.0.0.1
117116
Test-Path -Path $mailBox | Should -BeTrue
118117
$mail = read-mail $mailBox
119118
$mail.From | Should -BeExactly $address
120-
$mail.To.Count | Should -BeExactly 1
119+
$mail.To.Count | Should -BeExactly 1It
120+
$body = "Greetings from me."
121121
$mail.To[0] | Should -BeExactly $address
122122
$mail.ReplyTo.Count | Should -BeExactly 1
123123
$mail.ReplyTo[0] | Should -BeExactly $address

0 commit comments

Comments
 (0)