Skip to content

Commit 858f7e2

Browse files
Add Pester tests for Install-ElvUI and Update-ElvUI
1 parent b5f5f64 commit 858f7e2

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

tests/ElvUI.Tests.ps1

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

0 commit comments

Comments
 (0)