Andy 0545173f66 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
2017-03-19 22:03:11 +01:00

201 lines
4.4 KiB
JSON

{
"type": "File",
"start": 0,
"end": 56,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 56
}
},
"program": {
"type": "Program",
"start": 0,
"end": 56,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 56
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 56,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 56
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "crypto"
},
"name": "crypto"
}
},
{
"type": "ImportSpecifier",
"start": 17,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 24
}
},
"imported": {
"type": "Identifier",
"start": 17,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 24
},
"identifierName": "decrypt"
},
"name": "decrypt"
},
"local": {
"type": "Identifier",
"start": 17,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 24
},
"identifierName": "decrypt"
},
"name": "decrypt"
}
},
{
"type": "ImportSpecifier",
"start": 26,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 40
}
},
"imported": {
"type": "Identifier",
"start": 26,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 33
},
"identifierName": "encrypt"
},
"name": "encrypt"
},
"local": {
"type": "Identifier",
"start": 37,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 40
},
"identifierName": "enc"
},
"name": "enc"
}
}
],
"source": {
"type": "StringLiteral",
"start": 48,
"end": 56,
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 56
}
},
"extra": {
"rawValue": "crypto",
"raw": "\"crypto\""
},
"value": "crypto"
}
}
],
"directives": []
}
}