Skip to content

Commit 7a99cfa

Browse files
authored
Fix line-endings error for net - script - tests (Azure#52039)
* normalize the line endings of the platform json
1 parent 5483e6a commit 7a99cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/scripts/docs/tests/Service-Readme-Generation.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Describe "Get-OnboardedDocsMsPackagesForMoniker" -Tag "UnitTest" {
2828
$onboardingPackages = Get-dotnet-OnboardedDocsMsPackagesForMoniker -DocRepoLocation $DocRepoLocation -moniker $moniker
2929
foreach ($package in $onboardingPackages.GetEnumerator()) {
3030
$package.Key | Should -Be $package.Value.Name
31-
(ConvertTo-Json $package.Value) | Should -Be (Get-Content "$DocRepoLocation/metadata/$moniker/$($package.Key).json" -Raw)
31+
$packageValueNormalized = (ConvertTo-Json $package.Value) -replace "`r`n", "`n"
32+
$packageValueNormalized | Should -Be (Get-Content "$DocRepoLocation/metadata/$moniker/$($package.Key).json" -Raw)
3233
}
3334
}
3435

0 commit comments

Comments
 (0)