Skip to content

Commit 19294a6

Browse files
committed
fix: Test failed in PS5 'cos Unicode in 'test\Scoop-Config.Tests.ps1'
This was introduced in #4644 and only occurred in non-Unicode system
1 parent c27a81f commit 19294a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/Import-File-Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Describe 'Style constraints for non-binary project files' {
6666
It 'file newlines are CRLF' -Skip:$(-not $files_exist) {
6767
$badFiles = @(
6868
foreach ($file in $files) {
69-
$content = Get-Content -Raw $file.FullName
69+
$content = [System.IO.File]::ReadAllText($file.FullName)
7070
if (!$content) {
7171
throw "File contents are null: $($file.FullName)"
7272
}

0 commit comments

Comments
 (0)