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:
43
test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json
vendored
Executable file → Normal file
43
test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json
vendored
Executable file → Normal file
@@ -83,7 +83,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
}
|
||||
},
|
||||
"identifierName": "module"
|
||||
},
|
||||
"name": "module"
|
||||
},
|
||||
@@ -99,7 +100,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"identifierName": "exports"
|
||||
},
|
||||
"name": "exports"
|
||||
},
|
||||
@@ -122,6 +124,7 @@
|
||||
"id": null,
|
||||
"generator": false,
|
||||
"expression": false,
|
||||
"async": false,
|
||||
"params": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
@@ -135,7 +138,8 @@
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"identifierName": "context"
|
||||
},
|
||||
"name": "context"
|
||||
}
|
||||
@@ -181,12 +185,14 @@
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 23
|
||||
}
|
||||
},
|
||||
"identifierName": "isConstant"
|
||||
},
|
||||
"name": "isConstant"
|
||||
},
|
||||
"generator": false,
|
||||
"expression": false,
|
||||
"async": false,
|
||||
"params": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
@@ -200,7 +206,8 @@
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 28
|
||||
}
|
||||
},
|
||||
"identifierName": "node"
|
||||
},
|
||||
"name": "node"
|
||||
}
|
||||
@@ -260,7 +267,8 @@
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 20
|
||||
}
|
||||
},
|
||||
"identifierName": "node"
|
||||
},
|
||||
"name": "node"
|
||||
},
|
||||
@@ -276,7 +284,8 @@
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"identifierName": "type"
|
||||
},
|
||||
"name": "type"
|
||||
},
|
||||
@@ -338,7 +347,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"identifierName": "isConstant"
|
||||
},
|
||||
"name": "isConstant"
|
||||
},
|
||||
@@ -383,7 +393,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 38
|
||||
}
|
||||
},
|
||||
"identifierName": "node"
|
||||
},
|
||||
"name": "node"
|
||||
},
|
||||
@@ -399,7 +410,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 50
|
||||
}
|
||||
},
|
||||
"identifierName": "expressions"
|
||||
},
|
||||
"name": "expressions"
|
||||
},
|
||||
@@ -459,7 +471,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 55
|
||||
}
|
||||
},
|
||||
"identifierName": "node"
|
||||
},
|
||||
"name": "node"
|
||||
},
|
||||
@@ -475,7 +488,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 67
|
||||
}
|
||||
},
|
||||
"identifierName": "expressions"
|
||||
},
|
||||
"name": "expressions"
|
||||
},
|
||||
@@ -493,7 +507,8 @@
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 74
|
||||
}
|
||||
},
|
||||
"identifierName": "length"
|
||||
},
|
||||
"name": "length"
|
||||
},
|
||||
@@ -631,4 +646,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user