Test runner: Detect extra property in 'actual' but not in 'expected'. (#407)
* Test runner: Detect extra property in 'actual' but not in 'expected'. Also update all expected.json where this would result in errors. * Include rmExpected.js script in case it is needed again
This commit is contained in:
@@ -54,12 +54,14 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"extends": [],
|
||||
"mixins": [],
|
||||
"body": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 12,
|
||||
@@ -76,10 +78,11 @@
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": []
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
@@ -86,13 +87,15 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 21
|
||||
}
|
||||
},
|
||||
"identifierName": "B"
|
||||
},
|
||||
"name": "B"
|
||||
},
|
||||
"typeParameters": null
|
||||
}
|
||||
],
|
||||
"mixins": [],
|
||||
"body": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 22,
|
||||
@@ -109,10 +112,11 @@
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": []
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
@@ -87,7 +88,8 @@
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"name": "T"
|
||||
"name": "T",
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -118,7 +120,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"identifierName": "B"
|
||||
},
|
||||
"name": "B"
|
||||
},
|
||||
@@ -164,7 +167,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 26
|
||||
}
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
@@ -198,7 +202,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 30
|
||||
}
|
||||
},
|
||||
"identifierName": "C"
|
||||
},
|
||||
"name": "C"
|
||||
},
|
||||
@@ -244,7 +249,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 32
|
||||
}
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
@@ -270,7 +276,8 @@
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": []
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -54,12 +54,14 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"extends": [],
|
||||
"mixins": [],
|
||||
"body": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 12,
|
||||
@@ -102,7 +104,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 17
|
||||
}
|
||||
},
|
||||
"identifierName": "foo"
|
||||
},
|
||||
"name": "foo"
|
||||
},
|
||||
@@ -140,13 +143,15 @@
|
||||
"typeParameters": null
|
||||
},
|
||||
"optional": false,
|
||||
"static": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,12 +54,14 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 20
|
||||
}
|
||||
},
|
||||
"identifierName": "Dictionary"
|
||||
},
|
||||
"name": "Dictionary"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"extends": [],
|
||||
"mixins": [],
|
||||
"body": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 21,
|
||||
@@ -102,7 +104,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 54
|
||||
}
|
||||
},
|
||||
"identifierName": "length"
|
||||
},
|
||||
"name": "length"
|
||||
},
|
||||
@@ -122,6 +125,7 @@
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
@@ -140,6 +144,7 @@
|
||||
"column": 46
|
||||
}
|
||||
},
|
||||
"static": false,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 24,
|
||||
@@ -152,7 +157,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 29
|
||||
}
|
||||
},
|
||||
"identifierName": "index"
|
||||
},
|
||||
"name": "index"
|
||||
},
|
||||
@@ -188,10 +194,11 @@
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
}
|
||||
},
|
||||
"identifierName": "Foo"
|
||||
},
|
||||
"name": "Foo"
|
||||
},
|
||||
@@ -86,7 +87,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"identifierName": "Bar"
|
||||
},
|
||||
"name": "Bar"
|
||||
},
|
||||
@@ -110,7 +112,7 @@
|
||||
"body": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
}
|
||||
},
|
||||
"identifierName": "Foo"
|
||||
},
|
||||
"name": "Foo"
|
||||
},
|
||||
@@ -70,7 +71,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 21
|
||||
}
|
||||
},
|
||||
"identifierName": "Bar"
|
||||
},
|
||||
"name": "Bar"
|
||||
},
|
||||
@@ -101,7 +103,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 36
|
||||
}
|
||||
},
|
||||
"identifierName": "Bat"
|
||||
},
|
||||
"name": "Bat"
|
||||
},
|
||||
@@ -133,7 +136,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 41
|
||||
}
|
||||
},
|
||||
"identifierName": "Man"
|
||||
},
|
||||
"name": "Man"
|
||||
},
|
||||
@@ -188,7 +192,7 @@
|
||||
"body": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
}
|
||||
},
|
||||
"identifierName": "Foo"
|
||||
},
|
||||
"name": "Foo"
|
||||
},
|
||||
@@ -84,7 +85,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
},
|
||||
"identifierName": "Bar"
|
||||
},
|
||||
"name": "Bar"
|
||||
},
|
||||
@@ -116,7 +118,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 42
|
||||
}
|
||||
},
|
||||
"identifierName": "Bat"
|
||||
},
|
||||
"name": "Bat"
|
||||
},
|
||||
@@ -157,7 +160,7 @@
|
||||
"body": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
}
|
||||
},
|
||||
"identifierName": "Foo"
|
||||
},
|
||||
"name": "Foo"
|
||||
},
|
||||
@@ -84,7 +85,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
},
|
||||
"identifierName": "Bar"
|
||||
},
|
||||
"name": "Bar"
|
||||
},
|
||||
@@ -116,7 +118,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 42
|
||||
}
|
||||
},
|
||||
"identifierName": "Bat"
|
||||
},
|
||||
"name": "Bat"
|
||||
},
|
||||
@@ -167,7 +170,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 60
|
||||
}
|
||||
},
|
||||
"identifierName": "Man"
|
||||
},
|
||||
"name": "Man"
|
||||
},
|
||||
@@ -191,7 +195,7 @@
|
||||
"body": []
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user