Skip to content

Commit

Permalink
Style rules extended for psd1 files, trailing spaces and tabs removed…
Browse files Browse the repository at this point in the history
… from psd1 files (pester#842)
  • Loading branch information
it-praktyk authored and nohwnd committed Sep 2, 2017
1 parent 4c91cad commit a622382
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Pester.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ Describe 'Public API' {
}
}

Describe 'Style rules' {
Describe 'Style rules' -Tag StyleRules {
$pesterRoot = (Get-Module Pester).ModuleBase

$files = @(
Get-ChildItem $pesterRoot\* -Include *.ps1,*.psm1
Get-ChildItem (Join-Path $pesterRoot 'Functions') -Include *.ps1,*.psm1 -Recurse
Get-ChildItem $pesterRoot\* -Include *.ps1,*.psm1, *.psd1
Get-ChildItem (Join-Path $pesterRoot 'Functions') -Include *.ps1,*.psm1, *.psd1 -Recurse
Get-ChildItem (Join-Path $pesterRoot 'en-US') -Include *.ps1,*.psm1, *.psd1 -Recurse
)

It 'Pester source files contain no trailing whitespace' {
Expand Down
2 changes: 1 addition & 1 deletion Pester.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ FunctionsToExport = @(
'Set-TestInconclusive'
'SafeGetCommand'
'New-PesterOption'
'New-MockObject'
'New-MockObject'
'Add-AssertionOperator'

# Gherkin Support:
Expand Down
4 changes: 2 additions & 2 deletions en-US/Gherkin.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Context = "Scenario: {0}"
Margin = " "
Timing = "Testing completed in {0}"

# If this is set to an empty string, the count won't be printed
ContextsPassed = "Scenarios Passed: {0} "
ContextsFailed = "Failed: {0}"
Expand All @@ -26,4 +26,4 @@
TestsSkipped = 'Skipped: {0} '
TestsPending = 'Pending: {0} '
TestsInconclusive = 'Inconclusive: {0} '
}
}

0 comments on commit a622382

Please sign in to comment.