I am comparing two files which looks exactly alike, and when I test locally there is no problem, but when i run the test in my azure pipeline, the test fails and says it does not look alike.
I have no idea why or what to do for debugging?
Context "Azure Hierarchy" {
It "Article is updated" {
$FileContent = Get-Content $AzureHierarchyDocsFilePath
Compare-Object -ReferenceObject $AzureHierarchy -DifferenceObject $FileContent -CaseSensitive |
Should -BeNullOrEmpty
}
}