This commit is contained in:
21
src/Build/Update-ModuleMeta.Tests.ps1
Normal file
21
src/Build/Update-ModuleMeta.Tests.ps1
Normal file
@ -0,0 +1,21 @@
|
||||
BeforeAll {
|
||||
$Repo = Get-RepoPath
|
||||
Import-Module $Repo.Src.Manifest.Item.FullName -Force
|
||||
}
|
||||
Describe 'Update-ModuleMeta' {
|
||||
Context 'Default tests' -Tag 'Default' {
|
||||
It 'Test Function' {
|
||||
{ Get-Command -Name 'Update-ModuleMeta' -Module $Repo.Artifact } | Should -Not -Throw
|
||||
}
|
||||
|
||||
It 'Test Help' {
|
||||
{ Get-Help -Name 'Update-ModuleMeta' } | Should -Not -Throw
|
||||
}
|
||||
It 'Help Content' {
|
||||
$foo = Get-Help -Name 'Update-ModuleMeta'
|
||||
$foo.Synopsis.Length | Should -BeGreaterThan 5
|
||||
$foo.Description.Count | Should -BeGreaterOrEqual 1
|
||||
$foo.Description[0].Text.Length | Should -BeGreaterThan 5
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user