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:
Andy
2017-03-19 14:03:11 -07:00
committed by Daniel Tschinder
parent 82b7872cb8
commit 0545173f66
1379 changed files with 12566 additions and 11513 deletions

View File

@@ -1,150 +0,0 @@
{
"type": "File",
"start": 0,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 15
}
},
"program": {
"type": "Program",
"start": 0,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 15
}
},
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 15
}
},
"expression": {
"type": "ArrowFunctionExpression",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"id": null,
"generator": false,
"expression": true,
"params": [
{
"type": "ArrayPattern",
"start": 1,
"end": 10,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 10
}
},
"elements": [
{
"type": "Identifier",
"start": 2,
"end": 3,
"loc": {
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 3
}
},
"name": "a"
},
{
"type": "RestElement",
"start": 4,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 8
}
},
"argument": {
"type": "Identifier",
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
},
"name": "b"
}
}
]
}
],
"body": {
"type": "Literal",
"start": 13,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
}
]
}
}

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "ArrayPattern",
@@ -87,7 +88,8 @@
"end": {
"line": 1,
"column": 3
}
},
"identifierName": "a"
},
"name": "a"
}

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "ArrayPattern",
@@ -87,7 +88,8 @@
"end": {
"line": 1,
"column": 3
}
},
"identifierName": "a"
},
"name": "a"
},
@@ -103,7 +105,8 @@
"end": {
"line": 1,
"column": 5
}
},
"identifierName": "b"
},
"name": "b"
}

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "ArrayPattern",
@@ -87,7 +88,8 @@
"end": {
"line": 1,
"column": 3
}
},
"identifierName": "a"
},
"name": "a"
},
@@ -117,7 +119,8 @@
"end": {
"line": 1,
"column": 8
}
},
"identifierName": "b"
},
"name": "b"
}

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "ArrayPattern",

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "ArrayPattern",