Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions powershell/tests/functions/Test-MtConnection.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ Describe 'Test-MtConnection — requested service formatting' {
)

$ExpectedServiceOrder | ForEach-Object {
$Rendered | Should -Match "(?m)^$([regex]::Escape($_))\s+: Not connected$"
$Rendered | Should -Match "(?m)^$([regex]::Escape($_))\s+: Not connected\r?$"
}

for ($i = 1; $i -lt $ExpectedServiceOrder.Count; $i++) {
Expand Down Expand Up @@ -543,8 +543,8 @@ Describe 'Test-MtConnection — requested service formatting' {
$Rendered = $Result | Out-String

@($Result.ServicesChecked) | Should -Be @('Graph', 'GitHub')
$Rendered | Should -Match '(?m)^Microsoft Graph\s+: Not connected$'
$Rendered | Should -Match '(?m)^GitHub\s+: Not connected$'
$Rendered | Should -Match '(?m)^Microsoft Graph\s+: Not connected\r?$'
$Rendered | Should -Match '(?m)^GitHub\s+: Not connected\r?$'
$Rendered | Should -Not -Match '(?m)^Azure\s+:'
}

Expand All @@ -571,7 +571,7 @@ Describe 'Test-MtConnection — requested service formatting' {
)

$ExpectedServiceOrder | ForEach-Object {
$Rendered | Should -Match "(?m)^$([regex]::Escape($_))\s+: Not connected$"
$Rendered | Should -Match "(?m)^$([regex]::Escape($_))\s+: Not connected\r?$"
}

for ($i = 1; $i -lt $ExpectedServiceOrder.Count; $i++) {
Expand All @@ -594,7 +594,7 @@ Describe 'Test-MtConnection — requested service formatting' {
$Rendered = Test-MtConnection -Service $Service -Details | Out-String

$Rendered |
Should -Match '(?m)^Exchange Online Protection\s+: Not connected$'
Should -Match '(?m)^Exchange Online Protection\s+: Not connected\r?$'
}
}

Expand Down