1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/delete-operator.json
2016-10-11 16:18:26 -04:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-delete-operator-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "660d4f31a366c484dcf287cc129d2236e0064639",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dcdf4363cc41756d111762831febfeb2bc5c3561"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "dcdf4363cc41756d111762831febfeb2bc5c3561",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b9195fb8317d07798a424a3ad5897669cf2fec4d"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
18
]
},
{
"start": [
1,
1
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'delete thing.prop' operator with the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "b9195fb8317d07798a424a3ad5897669cf2fec4d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b1aa406089e4aafef90ec5732ba443d1031f561e"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
21
]
},
{
"start": [
1,
1
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced the 'delete thing['prop']' operator with the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "b1aa406089e4aafef90ec5732ba443d1031f561e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3d47f770de2c100cdd3f5cfcb8bc43f582e4a368"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "3d47f770de2c100cdd3f5cfcb8bc43f582e4a368",
"gitDir": "test/corpus/repos/javascript",
"sha2": "79ed3766548499729284c8eb3ff3cecfaed80a4c"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "79ed3766548499729284c8eb3ff3cecfaed80a4c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3b8b6b7c801a89beb229c8f9b705be4d4465b622"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "3b8b6b7c801a89beb229c8f9b705be4d4465b622",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8f71c3ee15ecf75d5d1aa9d7f9e82346c26b78e1"
}]