mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
9.2 KiB
JSON
297 lines
9.2 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "d4e864dd49194a81638843e841ec695be0760a6d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0d94ff9667630ffc860f5cb5333f5f26852ae555"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "0d94ff9667630ffc860f5cb5333f5f26852ae555",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "72faa91275c8937b1126145609c84a63ab46fbae"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "72faa91275c8937b1126145609c84a63ab46fbae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "db2725ffb5682a26cd55df80bd00aec08cbd0a43"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "db2725ffb5682a26cd55df80bd00aec08cbd0a43",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "90298bc75cf5d9c6227abf73fad97faae4e47c59"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "90298bc75cf5d9c6227abf73fad97faae4e47c59",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8769cac2a58027e4e04e72860fa8d37db5752dac"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "8769cac2a58027e4e04e72860fa8d37db5752dac",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7e0fb2d00a7df954f0b8f7c8ec3f5473fa04df97"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "7e0fb2d00a7df954f0b8f7c8ec3f5473fa04df97",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "85d810a0c973ca0394d96cd18baacac324ce884f"
|
|
}]
|