Skip to content

Commit

Permalink
Merge pull request #344 from alexsuslin/issue-278
Browse files Browse the repository at this point in the history
fixing issue-278 'Add test for syntax in documentation'
  • Loading branch information
lipkau authored Mar 21, 2019
2 parents fce2afb + 3c4205a commit b110856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/Help.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ Describe "Help tests" -Tag Documentation {
$help.Synopsis | Should -Not -BeNullOrEmpty
}

# Should be a syntax for every function
It "has a syntax" {
# syntax is starting with a small case as all the standard powershell commands have syntax with lower case, see (Get-Help Get-ChildItem) | gm
$help.syntax | Should -Not -BeNullOrEmpty
}

# Should be a description for every function
It "has a description" {
$help.Description.Text -join '' | Should -Not -BeNullOrEmpty
Expand Down

0 comments on commit b110856

Please sign in to comment.