Skip to content

Commit 6ea73db

Browse files
Finished unit tests
1 parent 959bed3 commit 6ea73db

2 files changed

Lines changed: 467 additions & 2 deletions

File tree

Modules/FileContentDsc/DSCResources/MSFT_ReplaceText/MSFT_ReplaceText.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function Test-TargetResource
238238

239239
if ($Type -eq 'Secret')
240240
{
241-
$Text = $Secret.Password
241+
$Text = $Secret.GetNetworkCredential().Password
242242
} # if
243243

244244
foreach ($result in $results)
@@ -287,7 +287,6 @@ function Test-TargetResource
287287
#>
288288
function Assert-ParametersValid
289289
{
290-
[OutputType([Boolean])]
291290
[CmdletBinding()]
292291
param
293292
(

0 commit comments

Comments
 (0)