mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.8 KiB
JSON
287 lines
8.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-template-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "dba1471102bd93cc8df4d2ad61cc252925242f95",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a1953c2675af7052e0aaabc1abb1a1618bd55677"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "a1953c2675af7052e0aaabc1abb1a1618bd55677",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "514aca82457473c4403b77493da292e983d694b0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`multi line`' template string with the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "514aca82457473c4403b77493da292e983d694b0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "634dae07058c437850cab4b72000a8f41154c8dc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`one line`' template string with the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "634dae07058c437850cab4b72000a8f41154c8dc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "01971a53f0e99198a4a038435ec8f0aa1fbabb16"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "01971a53f0e99198a4a038435ec8f0aa1fbabb16",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1ddc8e59dfcc912292a1ba731f6fb2e5b86d125c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "1ddc8e59dfcc912292a1ba731f6fb2e5b86d125c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a8f978e7c988107d072d904cf7b65b13f47bfc9b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "a8f978e7c988107d072d904cf7b65b13f47bfc9b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5b8cd5fa86bc2a117707ca99becee002d5ad3941"
|
|
}]
|