Skip to content

Commit

Permalink
Adds -Depth parameter explicitly to Set-CloudEventJsonData cmdlet in …
Browse files Browse the repository at this point in the history
…tests

Signed-off-by: Dimitar Milov <[email protected]>
  • Loading branch information
dmilov committed Apr 13, 2021
1 parent 3ec7891 commit c332e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/Read-CloudEventJsonData.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Set-CloudEventJsonData.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c332e53

Please sign in to comment.