From 1936d3610955e36cf934b83cda55b6b604603835 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Thu, 4 Jan 2024 03:29:08 +1300 Subject: [PATCH] Bump to 1.5.0 and fix test --- .../formatting/Format-SpectreJson.tests.ps1 | 46 +++++++++---------- PwshSpectreConsole/PwshSpectreConsole.psd1 | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) 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 = @()