Skip to content

Commit 849adcb

Browse files
committed
Cleanup test code
1 parent f7f95e7 commit 849adcb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/pester/Syntax.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Describe "Syntax highlighting" {
1717
}
1818

1919
# splitted in two lines, because of a bug in Sort-Object
20-
$stScopes = cat -Raw $scopesFile | ConvertFrom-Json; $stScopes = $stScopes | sort -Property @('startOffset', 'endOffset')
20+
$stScopes = Get-SublimeScopesFromFile $scopesFile
2121
# tokens are already sorted
2222
$psScopes = Get-TokensFromFile $testFile | Convert-TokenToScope
2323

tests/pester/SyntaxHelper.psm1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function Get-SublimeScopesFromFile
1818
[string] $filePath
1919
)
2020

21-
# splitted in two lines, because of a bug in Sort-Object
2221
$scopes = cat -Raw $filePath | ConvertFrom-Json
2322
$scopes = $scopes | sort -Property @('startOffset', 'endOffset')
2423
return $scopes

0 commit comments

Comments
 (0)