Skip to content

Commit

Permalink
Fix string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TizzySaurus committed Oct 25, 2024
1 parent 2da7bb5 commit a1f2911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ark/jsonschema/__tests__/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contextualize(() => {
})
attest(tPatternString.json).snap({
domain: "string",
regex: ["es"]
pattern: ["es"]
})
// JSON Schema explicitly specifies that regexes MUST NOT be implicitly anchored
// https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01#rfc.section.4.3
Expand All @@ -51,7 +51,7 @@ contextualize(() => {
})
attest(tPatternRegExp.json).snap({
domain: "string",
regex: ["es"] // strips the outer slashes
pattern: ["es"] // strips the outer slashes
})
attest(tPatternRegExp.allows("expression")).equals(true)
})
Expand Down

0 comments on commit a1f2911

Please sign in to comment.