* 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
390 lines
12 KiB
JSON
390 lines
12 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start": 0,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 11,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 11
|
|
},
|
|
"identifierName": "Query"
|
|
},
|
|
"name": "Query"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 12,
|
|
"end": 130,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 18,
|
|
"end": 128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 25,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 19
|
|
},
|
|
"identifierName": "queryAll"
|
|
},
|
|
"name": "queryAll"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": true,
|
|
"expression": false,
|
|
"async": true,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 34,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 23
|
|
},
|
|
"identifierName": "ids"
|
|
},
|
|
"name": "ids"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 39,
|
|
"end": 128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start": 49,
|
|
"end": 122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 9
|
|
}
|
|
},
|
|
"await": false,
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"start": 54,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 21
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 60,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 21
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 60,
|
|
"end": 62,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 21
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 66,
|
|
"end": 69,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 28
|
|
},
|
|
"identifierName": "ids"
|
|
},
|
|
"name": "ids"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 71,
|
|
"end": 122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 85,
|
|
"end": 112,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 39
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "YieldExpression",
|
|
"start": 85,
|
|
"end": 111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 38
|
|
}
|
|
},
|
|
"delegate": false,
|
|
"argument": {
|
|
"type": "AwaitExpression",
|
|
"start": 91,
|
|
"end": 111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 38
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 97,
|
|
"end": 111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 97,
|
|
"end": 107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 34
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 97,
|
|
"end": 101,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 102,
|
|
"end": 107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 34
|
|
},
|
|
"identifierName": "query"
|
|
},
|
|
"name": "query"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 108,
|
|
"end": 110,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 37
|
|
},
|
|
"identifierName": "id"
|
|
},
|
|
"name": "id"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |