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/anonymous-parameterless-function.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
9.0 KiB
JSON

[{
"testCaseDescription": "javascript-anonymous-parameterless-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "45d448bfd33f1ae99cfb456e0406aacf8a062bae",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aec6e727561aee130c90b90fa6540d97832a3482"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "aec6e727561aee130c90b90fa6540d97832a3482",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fb1355e502b99d6a88903728f06d89d59304a7bd"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'hello' string with the 'hi' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "fb1355e502b99d6a88903728f06d89d59304a7bd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3eab315971fa3f78f733c025c8beb05cb82457c2"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
25
]
},
{
"start": [
1,
21
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'hi' string with the 'hello' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "3eab315971fa3f78f733c025c8beb05cb82457c2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "432758e6abd2f308e1944d48ec1cefbd4f8ba924"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "432758e6abd2f308e1944d48ec1cefbd4f8ba924",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ac22e7129f5ddecf730ac4431dd41877aa8dbfd2"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "ac22e7129f5ddecf730ac4431dd41877aa8dbfd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1fd170dc95296ebcf67244deb59a3a0b363a0d4a"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "1fd170dc95296ebcf67244deb59a3a0b363a0d4a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c75fb9316ad39a4eb2d3eb70fa688a22450f507d"
}]