Skip to content

Commit 31aa48c

Browse files
committed
fix: missing test case and wrong keyword
related to #95
1 parent d44da61 commit 31aa48c

File tree

1 file changed

+8
-1
lines changed
  • content/03-Objects/04-Applying-Schema-to-Property-Names

1 file changed

+8
-1
lines changed

content/03-Objects/04-Applying-Schema-to-Property-Names/code.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const solution = {
77
minProperties: 2,
88
propertyNames: {
99
pattern: "^[A-Z]+$",
10-
minimumLength: 3,
10+
minLength: 3,
1111
},
1212
additionalProperties: {
1313
type: ["string", "integer"],
@@ -22,6 +22,13 @@ const testCases = [
2222
},
2323
expected: true,
2424
},
25+
{
26+
input: {
27+
NAME: "JOhN DOE",
28+
PH: "97232748274",
29+
},
30+
expected: false,
31+
},
2532
{
2633
input: {
2734
NAME: "JOhN DOE",

0 commit comments

Comments
 (0)