Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Test/include/invokeCommand.mock.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function Get-MockFileContentJson{

Assert-MockFileNotfound $FileName

$content = Get-MockFileContent -fileName $filename | ConvertFrom-Json -AsHashtable:$AsHashtable -Depth 10
$content = Get-MockFileContent -fileName $filename | ConvertFrom-Json -AsHashtable:$AsHashtable -Depth 100

return $content
} Export-ModuleMember -Function Get-MockFileContentJson
Expand Down Expand Up @@ -255,3 +255,5 @@ function Assert-MockFileNotfound{
throw "File not found or wrong case name. Expected[ $filename ] - Found[$( $file.name )]"
}
}


6 changes: 4 additions & 2 deletions include/MyWrite.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ function Write-MyHost {
[Alias("Write-Host")]
param(
[Parameter(ValueFromPipeline)][string]$Message,
#NoNewLine
[Parameter()][string]$ForegroundColor = $OUTPUT_COLOR,
[Parameter()][switch]$NoNewLine
)
# Write-Host $message -ForegroundColor $OUTPUT_COLOR
Write-ToConsole $message -Color $OUTPUT_COLOR -NoNewLine:$NoNewLine
Write-ToConsole $message -Color $ForegroundColor -NoNewLine:$NoNewLine
}

function Write-MyDebug {
Expand Down Expand Up @@ -199,3 +199,5 @@ function Get-ObjetString {
return $Object | ConvertTo-Json -Depth 10 -ErrorAction SilentlyContinue
}
}