File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [Diagnostics.CodeAnalysis.SuppressMessageAttribute (
2+ ' PSReviewUnusedParameter' , ' ' ,
3+ Justification = ' Required for Pester tests'
4+ )]
5+ [Diagnostics.CodeAnalysis.SuppressMessageAttribute (
6+ ' PSUseDeclaredVarsMoreThanAssignments' , ' ' ,
7+ Justification = ' Required for Pester tests'
8+ )]
9+ [CmdletBinding ()]
10+ param ()
11+
12+ Describe ' ElvUI' {
13+ Context ' Install-ElvUI' {
14+ It ' Should be available' {
15+ Get-Command Install-ElvUI - ErrorAction SilentlyContinue | Should -Not - BeNullOrEmpty
16+ }
17+ It ' Should have WoWPath parameter' {
18+ (Get-Command Install-ElvUI ).Parameters.ContainsKey(' WoWPath' ) | Should - BeTrue
19+ }
20+ It ' Should have Flavor parameter' {
21+ (Get-Command Install-ElvUI ).Parameters.ContainsKey(' Flavor' ) | Should - BeTrue
22+ }
23+ }
24+ Context ' Update-ElvUI' {
25+ It ' Should be available' {
26+ Get-Command Update-ElvUI - ErrorAction SilentlyContinue | Should -Not - BeNullOrEmpty
27+ }
28+ It ' Should have WoWPath parameter' {
29+ (Get-Command Update-ElvUI ).Parameters.ContainsKey(' WoWPath' ) | Should - BeTrue
30+ }
31+ It ' Should have Flavor parameter' {
32+ (Get-Command Update-ElvUI ).Parameters.ContainsKey(' Flavor' ) | Should - BeTrue
33+ }
34+ It ' Should have Force parameter' {
35+ (Get-Command Update-ElvUI ).Parameters.ContainsKey(' Force' ) | Should - BeTrue
36+ }
37+ }
38+ }
You can’t perform that action at this time.
0 commit comments