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/arrow-function.json
2016-11-01 10:03:25 -05:00

287 lines
8.7 KiB
JSON

[{
"testCaseDescription": "javascript-arrow-function-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "1a65f6b31571ca180a7067af4efe0b804b5bd17f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d8b95c6c259bbc1031068e76b71ee165a32fcc90"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "d8b95c6c259bbc1031068e76b71ee165a32fcc90",
"gitDir": "test/corpus/repos/javascript",
"sha2": "38971f3bb12072ce71a8af2e61b40128e2e04335"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "38971f3bb12072ce71a8af2e61b40128e2e04335",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0bad91b1393996893c42c7ca6cea6b485ed79f3d"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "0bad91b1393996893c42c7ca6cea6b485ed79f3d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "22eb88fd92a0f54db863a2c99e7f6cefd573d70c"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "22eb88fd92a0f54db863a2c99e7f6cefd573d70c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce32c18979a6f118f1a64d68058aea090fbd6ffa"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "ce32c18979a6f118f1a64d68058aea090fbd6ffa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "555a09419c1aeebf5676d25753625cc4a6558f9b"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"sha1": "555a09419c1aeebf5676d25753625cc4a6558f9b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "843b9d83e2acc3f1bf014abc4e2402e1a783d3f6"
}]