Skip to content

Commit cd00e92

Browse files
committed
Minor clean up of xOfflineDomainJoin tests
1 parent f22f175 commit cd00e92

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Tests/Unit/MSFT_xOfflineDomainJoin.tests.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
$script:DSCModuleName = 'xComputerManagement'
2-
$script:DSCResourceName = 'MSFT_xOfflineDomainJoin'
1+
$script:DSCModuleName = 'xComputerManagement'
2+
$script:DSCResourceName = 'MSFT_xOfflineDomainJoin'
33

44
Import-Module -Name (Join-Path -Path (Join-Path -Path (Split-Path $PSScriptRoot -Parent) -ChildPath 'TestHelpers') -ChildPath 'CommonTestHelper.psm1') -Global
55

66
# Unit Test Template Version: 1.2.0
77
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
88
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests'))) -or `
9-
(-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests\TestHelper.psm1'))) )
9+
(-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests\TestHelper.psm1'))) )
1010
{
11-
& git @('clone','https://github.com/PowerShell/DscResource.Tests.git',(Join-Path -Path $script:moduleRoot -ChildPath '\DSCResource.Tests\'))
11+
& git @('clone', 'https://github.com/PowerShell/DscResource.Tests.git', (Join-Path -Path $script:moduleRoot -ChildPath '\DSCResource.Tests\'))
1212
}
1313

1414
Import-Module (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests\TestHelper.psm1') -Force
@@ -28,7 +28,8 @@ try
2828

2929
$TestOfflineDomainJoin = @{
3030
IsSingleInstance = 'Yes'
31-
RequestFile = 'C:\ODJRequest.txt'
31+
RequestFile = 'C:\ODJRequest.txt'
32+
Verbose = $True
3233
}
3334

3435
Describe "$($script:DSCResourceName)\Get-TargetResource" {

0 commit comments

Comments
 (0)