From 63a90b0543647282b06526f2aa60032e559f7a28 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Feb 2024 23:13:59 +0100 Subject: [PATCH] Test tests --- tests/PSModuleTest.Tests.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/PSModuleTest.Tests.ps1 diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 new file mode 100644 index 0000000..7db096a --- /dev/null +++ b/tests/PSModuleTest.Tests.ps1 @@ -0,0 +1,11 @@ +Describe "PSModuleTest.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 + } + 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 + } +}