Skip to content

Commit 727a3c2

Browse files
committed
Fix descriptions in makeBlockDefault
1 parent ad19e2c commit 727a3c2

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

test-generator/prototype-safe.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ const makeBlockDefault = (name, proto) => `
122122
${makePropertyDefault(name, proto)}
123123
},
124124
{
125-
"description": "Does not see inexisting elements on new objects: '${inline(name)}' via required",
125+
"description": "Does not see inexisting elements on new objects: '${inline(name)}' as number",
126126
"comment": "Validating a new object should not be affected by previous default",
127127
${makeRequired(name)}
128128
},
129129
{
130-
"description": "Does not see inexisting elements on new objects: '${inline(name)}' via required",
130+
"description": "Does not see inexisting elements on new objects: '${inline(name)}' as object",
131131
"comment": "Validating a new object should not be affected by previous default",
132132
${makeNumber(name)}
133133
},

tests/draft2019-09/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
]
353353
},
354354
{
355-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
355+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
356356
"comment": "Validating a new object should not be affected by previous default",
357357
"schema": {
358358
"required": ["foo"]
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -456,7 +456,7 @@
456456
]
457457
},
458458
{
459-
"description": "Does not see inexisting elements on new objects: 'length' via required",
459+
"description": "Does not see inexisting elements on new objects: 'length' as number",
460460
"comment": "Validating a new object should not be affected by previous default",
461461
"schema": {
462462
"required": ["length"]
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as object",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -560,7 +560,7 @@
560560
]
561561
},
562562
{
563-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
563+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
564564
"comment": "Validating a new object should not be affected by previous default",
565565
"schema": {
566566
"required": ["__proto__"]
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }

tests/draft4/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
]
353353
},
354354
{
355-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
355+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
356356
"comment": "Validating a new object should not be affected by previous default",
357357
"schema": {
358358
"required": ["foo"]
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -456,7 +456,7 @@
456456
]
457457
},
458458
{
459-
"description": "Does not see inexisting elements on new objects: 'length' via required",
459+
"description": "Does not see inexisting elements on new objects: 'length' as number",
460460
"comment": "Validating a new object should not be affected by previous default",
461461
"schema": {
462462
"required": ["length"]
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as object",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -560,7 +560,7 @@
560560
]
561561
},
562562
{
563-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
563+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
564564
"comment": "Validating a new object should not be affected by previous default",
565565
"schema": {
566566
"required": ["__proto__"]
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }

tests/draft6/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
]
353353
},
354354
{
355-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
355+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
356356
"comment": "Validating a new object should not be affected by previous default",
357357
"schema": {
358358
"required": ["foo"]
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -456,7 +456,7 @@
456456
]
457457
},
458458
{
459-
"description": "Does not see inexisting elements on new objects: 'length' via required",
459+
"description": "Does not see inexisting elements on new objects: 'length' as number",
460460
"comment": "Validating a new object should not be affected by previous default",
461461
"schema": {
462462
"required": ["length"]
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as object",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -560,7 +560,7 @@
560560
]
561561
},
562562
{
563-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
563+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
564564
"comment": "Validating a new object should not be affected by previous default",
565565
"schema": {
566566
"required": ["__proto__"]
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }

tests/draft7/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
]
353353
},
354354
{
355-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
355+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
356356
"comment": "Validating a new object should not be affected by previous default",
357357
"schema": {
358358
"required": ["foo"]
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -456,7 +456,7 @@
456456
]
457457
},
458458
{
459-
"description": "Does not see inexisting elements on new objects: 'length' via required",
459+
"description": "Does not see inexisting elements on new objects: 'length' as number",
460460
"comment": "Validating a new object should not be affected by previous default",
461461
"schema": {
462462
"required": ["length"]
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as object",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -560,7 +560,7 @@
560560
]
561561
},
562562
{
563-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
563+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
564564
"comment": "Validating a new object should not be affected by previous default",
565565
"schema": {
566566
"required": ["__proto__"]
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }

0 commit comments

Comments
 (0)