mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.7 KiB
JSON
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": "b784ecef530da4646deff5aaff5d1263aa216ef3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b981ec4fb5850f454c25389b3cccdb678e94f626"
|
|
}
|
|
,{
|
|
"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": "b981ec4fb5850f454c25389b3cccdb678e94f626",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "419347ea5418439d6c4a0400799eef9ffe6ef5d2"
|
|
}
|
|
,{
|
|
"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": "419347ea5418439d6c4a0400799eef9ffe6ef5d2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c427f86b3d74e6605ac82591f26649df704049ce"
|
|
}
|
|
,{
|
|
"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": "c427f86b3d74e6605ac82591f26649df704049ce",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "89d1b4d2d18912e6cd8a0add7948ee3c8163a399"
|
|
}
|
|
,{
|
|
"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": "89d1b4d2d18912e6cd8a0add7948ee3c8163a399",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a77f256f44bf9d478cea9072b568053dfdfd7ff6"
|
|
}
|
|
,{
|
|
"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": "a77f256f44bf9d478cea9072b568053dfdfd7ff6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa0b9c6500c4e90003954f42846c897acd910558"
|
|
}
|
|
,{
|
|
"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": "aa0b9c6500c4e90003954f42846c897acd910558",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5a86b9e93eaf41a19163bf18d160b96b37245ee8"
|
|
}]
|