1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/template-string.json
2016-10-11 16:18:26 -04:00

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": "eac947afc7bc887c4b69523c4a6f77983a183edb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "950c2afcd03ac3b200b4f8b9a9aec3817648b04b"
}
,{
"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": "950c2afcd03ac3b200b4f8b9a9aec3817648b04b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "accc809e8ce1122d8b6151774c1fd769309c8e0f"
}
,{
"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": "accc809e8ce1122d8b6151774c1fd769309c8e0f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8737d021e9a9a63b61b17a1a18feb0e56dd25833"
}
,{
"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": "8737d021e9a9a63b61b17a1a18feb0e56dd25833",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7b2f1a9735c2c7e49481be1f7ca76a4d265adaa1"
}
,{
"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": "7b2f1a9735c2c7e49481be1f7ca76a4d265adaa1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "897d45ce3ce2e3abebd4f6c51f50ed8f3677b3bd"
}
,{
"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": "897d45ce3ce2e3abebd4f6c51f50ed8f3677b3bd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6fb06ea1442e30240106f1f36d59bd06ab2edb1f"
}
,{
"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": "6fb06ea1442e30240106f1f36d59bd06ab2edb1f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8df53a54c07fb78bfcd4ee6537e27adcb642531f"
}]