From af86157855bbd7be5954f40ffffc2bddac41499c Mon Sep 17 00:00:00 2001 From: Andrea Spadaccini Date: Fri, 22 Feb 2019 13:46:31 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20typo:=20aganist=20=E2=9E=9C=20against=20(?= =?UTF-8?q?#8943)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Microsoft.PowerShell.Utility/Test-Json.Tests.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1 index d659c382d..271dbb9df 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1 @@ -65,7 +65,7 @@ Describe "Test-Json" -Tags "CI" { Test-Json -Json $validJson | Should -BeTrue } - It "Json is valid aganist a valid schema" { + It "Json is valid against a valid schema" { Test-Json -Json $validJson -Schema $validSchemaJson | Should -BeTrue } @@ -73,7 +73,7 @@ Describe "Test-Json" -Tags "CI" { Test-Json -Json $invalidNodeInJson -ErrorAction SilentlyContinue | Should -BeFalse } - It "Json is invalid aganist a valid schema" { + It "Json is invalid against a valid schema" { Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse Test-Json -Json $invalidNodeInJson -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse } @@ -82,7 +82,7 @@ Describe "Test-Json" -Tags "CI" { { Test-Json -Json $validJson -Schema $invalidSchemaJson -ErrorAction Stop } | Should -Throw -ErrorId "InvalidJsonSchema,Microsoft.PowerShell.Commands.TestJsonCommand" } - It "Test-Json write an error on invalid () Json aganist a valid schema" -TestCases @( + It "Test-Json write an error on invalid () Json against a valid schema" -TestCases @( @{ name = "type"; json = $invalidTypeInJson; error = "InvalidJsonAgainstSchema,Microsoft.PowerShell.Commands.TestJsonCommand" } @{ name = "node"; json = $invalidNodeInJson; error = "InvalidJson,Microsoft.PowerShell.Commands.TestJsonCommand" } ) { @@ -94,7 +94,7 @@ Describe "Test-Json" -Tags "CI" { $errorVar.FullyQualifiedErrorId | Should -BeExactly $error } - It "Test-Json return all errors when check invalid Json aganist a valid schema" { + It "Test-Json return all errors when check invalid Json against a valid schema" { $errorVar = $null Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorVariable errorVar -ErrorAction SilentlyContinue