@@ -65,15 +65,15 @@ Describe "Test-Json" -Tags "CI" { |
65 | 65 | Test-Json -Json $validJson | Should -BeTrue |
66 | 66 | } |
67 | 67 |
|
68 | | - It "Json is valid aganist a valid schema" { |
| 68 | + It "Json is valid against a valid schema" { |
69 | 69 | Test-Json -Json $validJson -Schema $validSchemaJson | Should -BeTrue |
70 | 70 | } |
71 | 71 |
|
72 | 72 | It "Json is invalid" { |
73 | 73 | Test-Json -Json $invalidNodeInJson -ErrorAction SilentlyContinue | Should -BeFalse |
74 | 74 | } |
75 | 75 |
|
76 | | - It "Json is invalid aganist a valid schema" { |
| 76 | + It "Json is invalid against a valid schema" { |
77 | 77 | Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse |
78 | 78 | Test-Json -Json $invalidNodeInJson -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse |
79 | 79 | } |
@@ -82,7 +82,7 @@ Describe "Test-Json" -Tags "CI" { |
82 | 82 | { Test-Json -Json $validJson -Schema $invalidSchemaJson -ErrorAction Stop } | Should -Throw -ErrorId "InvalidJsonSchema,Microsoft.PowerShell.Commands.TestJsonCommand" |
83 | 83 | } |
84 | 84 |
|
85 | | - It "Test-Json write an error on invalid (<name>) Json aganist a valid schema" -TestCases @( |
| 85 | + It "Test-Json write an error on invalid (<name>) Json against a valid schema" -TestCases @( |
86 | 86 | @{ name = "type"; json = $invalidTypeInJson; error = "InvalidJsonAgainstSchema,Microsoft.PowerShell.Commands.TestJsonCommand" } |
87 | 87 | @{ name = "node"; json = $invalidNodeInJson; error = "InvalidJson,Microsoft.PowerShell.Commands.TestJsonCommand" } |
88 | 88 | ) { |
@@ -94,7 +94,7 @@ Describe "Test-Json" -Tags "CI" { |
94 | 94 | $errorVar.FullyQualifiedErrorId | Should -BeExactly $error |
95 | 95 | } |
96 | 96 |
|
97 | | - It "Test-Json return all errors when check invalid Json aganist a valid schema" { |
| 97 | + It "Test-Json return all errors when check invalid Json against a valid schema" { |
98 | 98 | $errorVar = $null |
99 | 99 | Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorVariable errorVar -ErrorAction SilentlyContinue |
100 | 100 |
|
|