From 9b10de91ae3144c393a0c0ffdd199207df84bf10 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 14 Mar 2024 19:03:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20tests=20for=20P?= =?UTF-8?q?ublicIP=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description - Add tests for PublicIP ## Type of change - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas --- tests/PublicIP.Tests.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/PublicIP.Tests.ps1 diff --git a/tests/PublicIP.Tests.ps1 b/tests/PublicIP.Tests.ps1 new file mode 100644 index 0000000..d64a6f2 --- /dev/null +++ b/tests/PublicIP.Tests.ps1 @@ -0,0 +1,11 @@ +Describe 'PublicIP' { + Context 'Module' { + It 'The module should be available' { + Get-Module -Name 'PublicIP' -ListAvailable | Should -Not -BeNullOrEmpty + Write-Verbose (Get-Module -Name 'PublicIP' -ListAvailable | Out-String) -Verbose + } + It 'The module should be imported' { + { Import-Module -Name 'PublicIP' } | Should -Not -Throw + } + } +}