Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Feb 22, 2024
1 parent 63a90b0 commit 91fcfe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Function Test-PSModuleTest {
Function Test-PSModuleTestWF {
<#
.SYNOPSIS
Performs tests on a module.
.EXAMPLE
Test-PSModuleTest -Name 'World'
Test-PSModuleTestWF -Name 'World'
"Hello, World!"
#>
Expand Down
12 changes: 6 additions & 6 deletions tests/PSModuleTest.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Describe "PSModuleTest.Tests.ps1" {
Describe 'PSModuleTestWFWF.Tests.ps1' {
It "Should be able to import the module" {
Import-Module -Name 'PSModuleTest'
Get-Module -Name 'PSModuleTest' | Should -Not -BeNullOrEmpty
Write-Verbose (Get-Module -Name 'PSModuleTest' | Out-String) -Verbose
Import-Module -Name 'PSModuleTestWF'
Get-Module -Name 'PSModuleTestWF' | Should -Not -BeNullOrEmpty
Write-Verbose (Get-Module -Name 'PSModuleTestWF' | Out-String) -Verbose
}
It "Should be able to call the function" {
Test-PSModuleTest -Name 'World' | Should -Be "Hello, World!"
Write-Verbose (Test-PSModuleTest -Name 'World' | Out-String) -Verbose
Test-PSModuleTestWF -Name 'World' | Should -Be "Hello, World!"
Write-Verbose (Test-PSModuleTestWF -Name 'World' | Out-String) -Verbose
}
}

0 comments on commit 91fcfe7

Please sign in to comment.