Skip to content

Commit 4572ef1

Browse files
Lakitnatorifat
authored andcommitted
Updated tests
1 parent 77f4bbf commit 4572ef1

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/validation-errors/__tests__/__snapshots__/enum.js.snap

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Array [
3838
"  1 | {
3939
> 2 |  \\"id\\": \\"baz\\"
4040
  |  ^^^^^ 👈🏽 Did you mean bar here?
41-
  3 | }",
41+
  3 | }
42+
43+
@ /id",
4244
]
4345
`;
4446
@@ -50,7 +52,9 @@ Array [
5052
"  1 | {
5153
> 2 |  \\"id\\": \\"baz\\"
5254
  |  ^^^^^ 👈🏽 Did you mean bar here?
53-
  3 | }",
55+
  3 | }
56+
57+
@ /id",
5458
]
5559
`;
5660
@@ -62,6 +66,8 @@ Array [
6266
"  1 | {
6367
> 2 |  \\"id\\": \\"baz\\"
6468
  |  ^^^^^ 👈🏽 Unexpected value, should be equal to one of the allowed values
65-
  3 | }",
69+
  3 | }
70+
71+
@ /id",
6672
]
6773
`;

src/validation-errors/__tests__/__snapshots__/required.js.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Array [
77
"  1 | {
88
> 2 |  \\"nested\\": {}
99
  |  ^ ☹️ id is missing here!
10-
  3 | }",
10+
  3 | }
11+
12+
@ /nested",
1113
]
1214
`;

0 commit comments

Comments
 (0)