Adds -Depth parameter explicitly to Set-CloudEventJsonData cmdlet in tests

Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
Dimitar Milov 2021-04-13 12:23:17 +03:00
parent 3ec7891e82
commit c332e53332
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Describe "Read-CloudEventJsonData Function Tests" {
$expectedHtData = @{'a' = 'b'}
$cloudEvent = $cloudEvent | Set-CloudEventJsonData -Data $expectedHtData
$cloudEvent = $cloudEvent | Set-CloudEventJsonData -Data $expectedHtData -Depth 1
# Act
$actual = $cloudEvent | Read-CloudEventJsonData

View File

@ -19,7 +19,7 @@ Describe "Set-CloudEventJsonData Function Tests" {
$htData = @{'a' = 'b'}
# Act
$actual = $cloudEvent | Set-CloudEventJsonData -Data $htData
$actual = $cloudEvent | Set-CloudEventJsonData -Data $htData -Depth 1
# Assert
$actual | Should -Not -Be $null