-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 [Patch]: Align code and process (#10)
## Description 🩹 [Patch]: Align code and process ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ]⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
- Loading branch information
1 parent
2c45788
commit bd24b05
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute( | ||
'PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification = 'Test code only' | ||
)] | ||
[CmdletBinding()] | ||
Param( | ||
# Path to the module to test. | ||
[Parameter()] | ||
[string] $Path | ||
) | ||
|
||
Write-Verbose "Path to the module: [$Path]" -Verbose | ||
|
||
Describe 'WoW' { | ||
Context 'Module' { | ||
It 'The module should be available' { | ||
Get-Module -Name 'WoW' -ListAvailable | Should -Not -BeNullOrEmpty | ||
Write-Verbose (Get-Module -Name 'WoW' -ListAvailable | Out-String) -Verbose | ||
} | ||
It 'The module should be importable' { | ||
{ Import-Module -Name 'WoW' -Verbose -RequiredVersion 999.0.0 -Force } | Should -Not -Throw | ||
} | ||
} | ||
} |