From 05f59d15b1c7236c4caec5aed8b643695f2d46f0 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Mon, 2 Nov 2015 14:06:58 -0800 Subject: [PATCH] Untabify Json.Tests --- src/pester-tests/Json.Tests.ps1 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pester-tests/Json.Tests.ps1 b/src/pester-tests/Json.Tests.ps1 index 13b9412d5..4cd90160f 100644 --- a/src/pester-tests/Json.Tests.ps1 +++ b/src/pester-tests/Json.Tests.ps1 @@ -12,32 +12,32 @@ Describe "Json.NET LINQ Parsing" { [Microsoft.PowerShell.CoreCLR.AssemblyExtensions]::LoadFrom($path) BeforeEach { - $jsonFile = "$here/assets/TestJson.json" - $jsonData = (Get-Content $jsonFile | Out-String) - $json = [Newtonsoft.Json.Linq.JObject]::Parse($jsonData) + $jsonFile = "$here/assets/TestJson.json" + $jsonData = (Get-Content $jsonFile | Out-String) + $json = [Newtonsoft.Json.Linq.JObject]::Parse($jsonData) } It "Should return data via Item()" { - [string]$json.Item("Name") | Should Be "Zaphod Beeblebrox" + [string]$json.Item("Name") | Should Be "Zaphod Beeblebrox" } It "Should return data via []" { - [string]$json["Planet"] | Should Be "Betelgeuse" + [string]$json["Planet"] | Should Be "Betelgeuse" } It "Should return nested data via Item().Item()" { - [int]$json.Item("Appendages").Item("Heads") | Should Be 2 + [int]$json.Item("Appendages").Item("Heads") | Should Be 2 } It "Should return nested data via [][]" { - [int]$json["Appendages"]["Arms"] | Should Be 3 + [int]$json["Appendages"]["Arms"] | Should Be 3 } It "Should return correct array count" { - $json["Achievements"].Count | Should Be 4 + $json["Achievements"].Count | Should Be 4 } It "Should return array data via [n]" { - [string]$json["Achievements"][3] | Should Be "One hoopy frood" + [string]$json["Achievements"][3] | Should Be "One hoopy frood" } }