* 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
196 lines
4.5 KiB
JSON
196 lines
4.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 45,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 45,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 27,
|
|
"end": 45,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 31,
|
|
"end": 44,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start": 31,
|
|
"end": 40,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 33,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 11
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 33,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 11
|
|
},
|
|
"identifierName": "spawn"
|
|
},
|
|
"name": "spawn",
|
|
"leadingComments": null
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 33,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 11
|
|
},
|
|
"identifierName": "spawn"
|
|
},
|
|
"name": "spawn"
|
|
},
|
|
"leadingComments": null,
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
],
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"start": 43,
|
|
"end": 44,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 17
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "var",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": "/usr/bin/env babel-node",
|
|
"start": 0,
|
|
"end": 25,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": "/usr/bin/env babel-node",
|
|
"start": 0,
|
|
"end": 25,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |