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/object-with-methods.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-objects-with-methods-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "c75fb9316ad39a4eb2d3eb70fa688a22450f507d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "79da3802869e2f94625ef1c0bdb49da4ca23f9d3"
}
,{
"testCaseDescription": "javascript-objects-with-methods-replacement-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Added the '{ subtract }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "79da3802869e2f94625ef1c0bdb49da4ca23f9d3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aeda258410731ff60955c71a14cb61aa7d6b69b4"
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
11
]
},
{
"start": [
1,
3
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'subtract' identifier with the 'add' identifier in the add method"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "aeda258410731ff60955c71a14cb61aa7d6b69b4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d43498dccb98ca54e268440f496338a1fa06d6f9"
}
,{
"testCaseDescription": "javascript-objects-with-methods-replacement-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
6
]
},
{
"start": [
1,
3
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'add' identifier with the 'subtract' identifier in the subtract method"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "d43498dccb98ca54e268440f496338a1fa06d6f9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3b069d7b3a09829839b5273d6a3090c3a157f62c"
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-replacement-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '{ subtract }' object"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the '{ add }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
37
]
}
},
"summary": "Added the '{ subtract }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "3b069d7b3a09829839b5273d6a3090c3a157f62c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "08b7ddaaa7317eb8d407d1ce97184c34e5240b99"
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "08b7ddaaa7317eb8d407d1ce97184c34e5240b99",
"gitDir": "test/corpus/repos/javascript",
"sha2": "70b414df2ee1dc004bf390fc83fd6bbc36628aa7"
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-rest-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '{ subtract }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
"sha1": "70b414df2ee1dc004bf390fc83fd6bbc36628aa7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6ba1bec246beb40cd40df1ea4ec93aa3fb7781e8"
}]