mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "89181d843c19462fa79a37e0a99c5bee43558772",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a59fef8e113ca886e2f83021d9429ad0988ae426"
|
|
}
|
|
,{
|
|
"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": "a59fef8e113ca886e2f83021d9429ad0988ae426",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bfdc52dbc31f45e8c770621ccf9c0921536fae52"
|
|
}
|
|
,{
|
|
"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": "bfdc52dbc31f45e8c770621ccf9c0921536fae52",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "109741f827869e6c42bdd401edacd6501fe51404"
|
|
}
|
|
,{
|
|
"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": "109741f827869e6c42bdd401edacd6501fe51404",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6ffec51dfd0b94f36b6e4a90fc17492ca465e81b"
|
|
}
|
|
,{
|
|
"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": "6ffec51dfd0b94f36b6e4a90fc17492ca465e81b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "333092f88dd4c057c4444d6dda4854c5d0b33224"
|
|
}
|
|
,{
|
|
"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": "333092f88dd4c057c4444d6dda4854c5d0b33224",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2806e6df308b06d3c6adc93bd54beaaf13d121f9"
|
|
}
|
|
,{
|
|
"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": "2806e6df308b06d3c6adc93bd54beaaf13d121f9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0cc29cda5e56293f27ae0d77a45c59b5053014b5"
|
|
}]
|