1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/object.json
2016-10-12 19:44:27 -04:00

293 lines
8.7 KiB
JSON

[{
"testCaseDescription": "javascript-object-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "95b56f256fdca7bd98d16f3f262958a833199499",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ea3e9b66f1a166534b2591c6f5f65ce468266e8b"
}
,{
"testCaseDescription": "javascript-object-replacement-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "ea3e9b66f1a166534b2591c6f5f65ce468266e8b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dbb4ddb0b8142a94af62060c27f2c4f8a696d2b8"
}
,{
"testCaseDescription": "javascript-object-delete-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
21
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '\"key2\": …' pair"
},
{
"span": {
"delete": {
"start": [
1,
39
],
"end": [
1,
52
]
}
},
"summary": "Deleted the '\"key3\": …' pair"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "dbb4ddb0b8142a94af62060c27f2c4f8a696d2b8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c242df2d5f92be4dcd34d653c375e07691c60743"
}
,{
"testCaseDescription": "javascript-object-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
21
],
"end": [
1,
37
]
}
},
"summary": "Added the '\"key2\": …' pair"
},
{
"span": {
"insert": {
"start": [
1,
39
],
"end": [
1,
52
]
}
},
"summary": "Added the '\"key3\": …' pair"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "c242df2d5f92be4dcd34d653c375e07691c60743",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97e004554f59ce2541bbbc51f744639474598fdf"
}
,{
"testCaseDescription": "javascript-object-delete-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "97e004554f59ce2541bbbc51f744639474598fdf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3e1111760e64755b00d03a37fc0349486dda4835"
}
,{
"testCaseDescription": "javascript-object-delete-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "3e1111760e64755b00d03a37fc0349486dda4835",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6a18803dc07beef37cf0dd041b7a9aab1ae3c206"
}
,{
"testCaseDescription": "javascript-object-delete-rest-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "6a18803dc07beef37cf0dd041b7a9aab1ae3c206",
"gitDir": "test/corpus/repos/javascript",
"sha2": "89d4b7d4413ca3848209491d3943e7f51075756b"
}]