diff --git a/PwshSpectreConsole.Tests/formatting/Format-SpectreJson.tests.ps1 b/PwshSpectreConsole.Tests/formatting/Format-SpectreJson.tests.ps1 index 1da5a834..f857f783 100644 --- a/PwshSpectreConsole.Tests/formatting/Format-SpectreJson.tests.ps1 +++ b/PwshSpectreConsole.Tests/formatting/Format-SpectreJson.tests.ps1 @@ -5,37 +5,37 @@ Import-Module "$PSScriptRoot\..\TestHelpers.psm1" -Force Describe "Format-SpectreJson" { InModuleScope "PwshSpectreConsole" { - $data = @( - [pscustomobject]@{ - Name = "John" - Age = 25 - City = "New York" - IsEmployed = $true - Salary = 10 - Hobbies = @("Reading", "Swimming") - Address = @{ - Street = "123 Main St" + BeforeEach { + $data = @( + [pscustomobject]@{ + Name = "John" + Age = 25 City = "New York" - Deep = @{ - Nested = @{ - Value = @{ - That = @{ - Is = @{ - Nested = @{ - Again = "Hello" + IsEmployed = $true + Salary = 10 + Hobbies = @("Reading", "Swimming") + Address = @{ + Street = "123 Main St" + City = "New York" + Deep = @{ + Nested = @{ + Value = @{ + That = @{ + Is = @{ + Nested = @{ + Again = "Hello" + } } } } } } + State = "NY" + Zip = "10001" } - State = "NY" - Zip = "10001" } - } - ) - - BeforeEach { + ) + $data | Out-Null $testBorder = Get-RandomBoxBorder $testColor = Get-RandomColor $testTitle = Get-RandomString diff --git a/PwshSpectreConsole/PwshSpectreConsole.psd1 b/PwshSpectreConsole/PwshSpectreConsole.psd1 index 5619393c..1b263feb 100644 --- a/PwshSpectreConsole/PwshSpectreConsole.psd1 +++ b/PwshSpectreConsole/PwshSpectreConsole.psd1 @@ -12,7 +12,7 @@ RootModule = 'PwshSpectreConsole' # Version number of this module. -ModuleVersion = '1.4.3' +ModuleVersion = '1.5.0' # Supported PSEditions # CompatiblePSEditions = @()