This commit is contained in:
Yorick Kuijs 2023-02-28 17:02:00 +01:00
Родитель f5ec0f23f4
Коммит 5dfaff1edd
3 изменённых файлов: 5 добавлений и 5 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -12,13 +12,13 @@ markdownissues.txt
start-unittests.ps1
TestDSCresource.ps1
Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterPolicy/Set-MalwareFilterPolicy.txt
.vscode/settings.json
docker/Extract.ps1
docker/Monitor.ps1
Modules/start-extraction.ps1
Modules/Microsoft365DSC/DSCResources/MSFT_EXOAvailabilityAddressSpace/Add-AvailabilityAddressSpace-parameterset.txt
*.log
DscResource.Tests/*
CodeCov.xml
# generated docs
docs/site

Просмотреть файл

@ -85,7 +85,7 @@ function Invoke-TestHarness
PassThru = $true
}
Output = @{
Verbosity = 'Detailed'
Verbosity = 'Normal'
}
}
@ -107,7 +107,7 @@ function Invoke-TestHarness
$results = Invoke-Pester -Configuration $Configuration
$message = 'Running the tests took {0} hours, {1} minutes, {2} seconds' -f $sw.Hours, $sw.Minutes, $sw.Seconds
$message = 'Running the tests took {0} hours, {1} minutes, {2} seconds' -f $sw.Elapsed.Hours, $sw.Elapsed.Minutes, $sw.Elapsed.Seconds
Write-Host -Object $message
$env:PSModulePath = $oldModPath

Просмотреть файл

@ -495,9 +495,9 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
}
]
'@
$role = $json | ConvertFrom-Json
$mockRole = $json | ConvertFrom-Json
Mock -CommandName Get-MgPolicyRoleManagementPolicyRule -MockWith {
return $role
return $mockRole
}
# Mock Write-Host to hide output during the tests