GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix typo: aganist ➜ against (#8943) · PowerShell/PowerShell@af86157

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/powershell/Modules/Microsoft.PowerShell.Utility
    • Test-Json.Tests.ps1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1‎

Copy file name to clipboardExpand all lines: test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ Describe "Test-Json" -Tags "CI" {
6565
Test-Json -Json $validJson | Should -BeTrue
6666
}
6767

68-
It "Json is valid aganist a valid schema" {
68+
It "Json is valid against a valid schema" {
6969
Test-Json -Json $validJson -Schema $validSchemaJson | Should -BeTrue
7070
}
7171

7272
It "Json is invalid" {
7373
Test-Json -Json $invalidNodeInJson -ErrorAction SilentlyContinue | Should -BeFalse
7474
}
7575

76-
It "Json is invalid aganist a valid schema" {
76+
It "Json is invalid against a valid schema" {
7777
Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse
7878
Test-Json -Json $invalidNodeInJson -Schema $validSchemaJson -ErrorAction SilentlyContinue | Should -BeFalse
7979
}
@@ -82,7 +82,7 @@ Describe "Test-Json" -Tags "CI" {
8282
{ Test-Json -Json $validJson -Schema $invalidSchemaJson -ErrorAction Stop } | Should -Throw -ErrorId "InvalidJsonSchema,Microsoft.PowerShell.Commands.TestJsonCommand"
8383
}
8484

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 @(
8686
@{ name = "type"; json = $invalidTypeInJson; error = "InvalidJsonAgainstSchema,Microsoft.PowerShell.Commands.TestJsonCommand" }
8787
@{ name = "node"; json = $invalidNodeInJson; error = "InvalidJson,Microsoft.PowerShell.Commands.TestJsonCommand" }
8888
) {
@@ -94,7 +94,7 @@ Describe "Test-Json" -Tags "CI" {
9494
$errorVar.FullyQualifiedErrorId | Should -BeExactly $error
9595
}
9696

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" {
9898
$errorVar = $null
9999
Test-Json -Json $invalidTypeInJson2 -Schema $validSchemaJson -ErrorVariable errorVar -ErrorAction SilentlyContinue
100100

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.