Adds -Depth parameter explicitly to Set-CloudEventJsonData cmdlet in tests
Signed-off-by: Dimitar Milov <dmilov@vmware.com>
This commit is contained in:
parent
3ec7891e82
commit
c332e53332
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue