Skip to content

Commit

Permalink
Harmonize VHD casing for DSC_VHD
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Apr 17, 2023
1 parent 91477f5 commit 7681d81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/DSC_VHD.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$script:dscModuleName = 'HyperVDsc'
$script:dscResourceName = 'DSC_Vhd'
$script:dscResourceName = 'DSC_VHD'

function Invoke-TestSetup
{
Expand Down Expand Up @@ -32,7 +32,7 @@ Invoke-TestSetup
try
{
InModuleScope $script:dscResourceName {
Describe 'DSC_Vhd\Get-TargetResource' {
Describe 'DSC_VHD\Get-TargetResource' {
Context 'Should stop when Hyper-V module is missing' {
Mock -CommandName Get-Module -ParameterFilter { ($Name -eq 'Hyper-V') -and ($ListAvailable -eq $true) } -MockWith {
return $false
Expand Down Expand Up @@ -76,7 +76,7 @@ try
}
}

Describe 'DSC_Vhd\GetNameWithExtension' {
Describe 'DSC_VHD\GetNameWithExtension' {
Context 'Name does not have extension' {
It 'Should return server.vhdx with generation vhdx' {
GetNameWithExtension -Name 'server' -Generation 'vhdx' |
Expand Down Expand Up @@ -107,7 +107,7 @@ try
}
}

Describe 'DSC_Vhd\Test-TargetResource' {
Describe 'DSC_VHD\Test-TargetResource' {
# Create an empty function to be able to mock the missing Hyper-V cmdlet
function Test-VHD
{
Expand Down Expand Up @@ -212,7 +212,7 @@ try
}
}

Describe 'DSC_Vhd\Set-TargetResource' {
Describe 'DSC_VHD\Set-TargetResource' {
Context 'Ensure is Absent' {
Mock -CommandName Test-Path -MockWith { $true }
Mock -CommandName Remove-Item
Expand Down

0 comments on commit 7681d81

Please sign in to comment.