1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00
semantic/test/corpus/diff-summaries/javascript/object.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05: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": "b3fe5bae4a947f5a90fb50f2b69ff505d7ca2932",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ad578ec57ff6d1e0ccd3c7efc9ee145bd0e6c4d5"
}
,{
"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": "ad578ec57ff6d1e0ccd3c7efc9ee145bd0e6c4d5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "af25aa0ca2688c29840f137c7e943152deb478b3"
}
,{
"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": "af25aa0ca2688c29840f137c7e943152deb478b3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be9d1bd78b02440285241c92a13c3c0f2093d496"
}
,{
"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": "be9d1bd78b02440285241c92a13c3c0f2093d496",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c04887612722a69b86981a703f8276c967401e10"
}
,{
"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": "c04887612722a69b86981a703f8276c967401e10",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b21035c33e1ad1ed000cd75f525d6263860760d4"
}
,{
"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": "b21035c33e1ad1ed000cd75f525d6263860760d4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b8d4ebb4bb863cad12eddc63c36fbab5b165b851"
}
,{
"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": "b8d4ebb4bb863cad12eddc63c36fbab5b165b851",
"gitDir": "test/corpus/repos/javascript",
"sha2": "70801fe02e1669714037fa964db6b89a852a2403"
}]