Skip to content

Commit b0a50a4

Browse files
Fix test for Export-DbaRegServer: Use correct directory in test (#9964)
1 parent b4d1061 commit b0a50a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Export-DbaRegServer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Describe $CommandName -Tag IntegrationTests {
8080
It "should create a specific xml file when using Path" {
8181
$results2 = $newGroup2 | Export-DbaRegServer -Path $newDirectory
8282
$results2 -is [System.IO.FileInfo] | Should -Be $true
83-
$results2.FullName | Should -Match "C:\\temp"
83+
$results2.FullName | Should -Match ([regex]::escape($newDirectory))
8484
Get-Content -Path $results2 -Raw | Should -Match $group2
8585
}
8686

0 commit comments

Comments
 (0)