From 94cc67e07be4ab36860132cb6ad9eac73de2bc56 Mon Sep 17 00:00:00 2001 From: AtlassianPS Automated User Date: Wed, 20 Mar 2019 02:34:07 +0300 Subject: [PATCH] fixing issue-278 'Add test for syntax in documentation' --- Tests/Help.Tests.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/Help.Tests.ps1 b/Tests/Help.Tests.ps1 index fc8af971..65375318 100644 --- a/Tests/Help.Tests.ps1 +++ b/Tests/Help.Tests.ps1 @@ -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