Skip to content

Commit

Permalink
fix test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Dec 12, 2020
1 parent dde70a2 commit 4f68037
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -247,6 +247,16 @@ Describe 'Formatting for FileInfo objects' -Tags 'CI' {

$exe.NameString | Should -BeExactly "$($PSStyle.FileInfo.Executable + $exe.Name + $PSStyle.Reset)"
}
}

Describe 'Formatting for FileInfo requiring admin' -Tags 'CI','RequireAdminOnWindows' {
BeforeAll {
$PSDefaultParameterValues.Add('It:Skip', (-not $EnabledExperimentalFeatures.Contains('PSFileInfoColor')))
}

AfterAll {
$PSDefaultParameterValues.Remove('It:Skip')
}

It 'Symlink should have correct color' {
$linkPath = Join-Path -Path $TestDrive -ChildPath 'link'
Expand Down

0 comments on commit 4f68037

Please sign in to comment.