1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/delete-operator.json
2016-10-14 12:12:38 -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": "e3b7d555f5a7a9c110a1faff14021742cdd0838e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "efc68de5c72843adae4b553831affe262528b021"
}
,{
"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": "efc68de5c72843adae4b553831affe262528b021",
"gitDir": "test/corpus/repos/javascript",
"sha2": "474362b14149635ac99c6ebf08e3ad7cc6e05a2c"
}
,{
"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": "474362b14149635ac99c6ebf08e3ad7cc6e05a2c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c07373991dfb0ac655038e71d749273f08956d5"
}
,{
"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": "6c07373991dfb0ac655038e71d749273f08956d5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "61f8439de8d920cc1eea6bd6307560786a414b21"
}
,{
"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": "61f8439de8d920cc1eea6bd6307560786a414b21",
"gitDir": "test/corpus/repos/javascript",
"sha2": "49cb51130638d7c2f95e530df5eebc3c4cfbdb09"
}
,{
"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": "49cb51130638d7c2f95e530df5eebc3c4cfbdb09",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1b57b0579116b7e13a18b8408dcb8ad74355357"
}
,{
"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": "a1b57b0579116b7e13a18b8408dcb8ad74355357",
"gitDir": "test/corpus/repos/javascript",
"sha2": "101565966a77d56704717ca1a707f38bff9e74a9"
}]