1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/delete-operator.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05: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": "9d2a799fbc151f3fd9eb286a0e430d041fc946fd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "68547fe76f0e7b43b3c6d155769510553dd5d620"
}
,{
"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": "68547fe76f0e7b43b3c6d155769510553dd5d620",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9340a74dc4076f29a17ead420c5f5795a4c5dfc4"
}
,{
"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": "9340a74dc4076f29a17ead420c5f5795a4c5dfc4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "133ade61f147b00cb88874d06a587429d89a97e9"
}
,{
"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": "133ade61f147b00cb88874d06a587429d89a97e9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7f5588ae1cd4d7585cb2debc02e58d55e855bfd6"
}
,{
"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": "7f5588ae1cd4d7585cb2debc02e58d55e855bfd6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ebc171bf8bced7e31d33eff3472f48c543d4fd77"
}
,{
"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": "ebc171bf8bced7e31d33eff3472f48c543d4fd77",
"gitDir": "test/corpus/repos/javascript",
"sha2": "948a0740e9e44d7d65f8f50d1dba54247272a1fa"
}
,{
"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": "948a0740e9e44d7d65f8f50d1dba54247272a1fa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "55ba87e139fcd55bc3616dbfbb1f936afdff609e"
}]