From c332e53332bd4d0247cc4a26e47e5720279dd207 Mon Sep 17 00:00:00 2001 From: Dimitar Milov Date: Tue, 13 Apr 2021 12:23:17 +0300 Subject: [PATCH] Adds -Depth parameter explicitly to Set-CloudEventJsonData cmdlet in tests Signed-off-by: Dimitar Milov --- test/unit/Read-CloudEventJsonData.Tests.ps1 | 2 +- test/unit/Set-CloudEventJsonData.Tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/Read-CloudEventJsonData.Tests.ps1 b/test/unit/Read-CloudEventJsonData.Tests.ps1 index fcea5e3..ebabe2c 100644 --- a/test/unit/Read-CloudEventJsonData.Tests.ps1 +++ b/test/unit/Read-CloudEventJsonData.Tests.ps1 @@ -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 diff --git a/test/unit/Set-CloudEventJsonData.Tests.ps1 b/test/unit/Set-CloudEventJsonData.Tests.ps1 index f8c7965..089fba9 100644 --- a/test/unit/Set-CloudEventJsonData.Tests.ps1 +++ b/test/unit/Set-CloudEventJsonData.Tests.ps1 @@ -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