From f6e0ffa6db0fe19ce1437712aa9db7810b86218f Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 29 Mar 2019 08:27:13 -0400 Subject: [PATCH] Add MarkDown Help File Content Test --- Tests/Public/ZertoApiWrapper.Tests.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tests/Public/ZertoApiWrapper.Tests.ps1 b/Tests/Public/ZertoApiWrapper.Tests.ps1 index b9f88f4..734c23f 100644 --- a/Tests/Public/ZertoApiWrapper.Tests.ps1 +++ b/Tests/Public/ZertoApiWrapper.Tests.ps1 @@ -34,6 +34,14 @@ Describe "File Tests" { it "$command has the External Help File Defined" { Get-Content -Path $path -First 1 | should be "<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>" } + it "$command external Help file is filled out" { + $stubExist = Get-Content -Path $externalHelpFile | Where-Object {$_.Trim() -like '*{{*}}*'} + if ($stubExist) { + Write-Warning "Found a stub in the Markdown File $externalHelpFile" + Write-Warning "$stubExist" + } + $stubExist | should benullorempty + } } } }