mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
348 lines
11 KiB
JSON
348 lines
11 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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index e69de29..01f859b 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+`one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "dffe792710a5ad52de12ed62e48340a71e5c9227..4f86472b03fd24538a67565981a8d25700240497"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 01f859b..777fde6 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+`multi line`",
|
|
"+`one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "4f86472b03fd24538a67565981a8d25700240497..8e2e8be8c6d60e68e5851f727da2c71ace094f34"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 777fde6..657129f 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`multi line`",
|
|
"+`one line`",
|
|
" `one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "8e2e8be8c6d60e68e5851f727da2c71ace094f34..a481b18c353836ec0291fd6a2e9ea424de6b7a8c"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 657129f..777fde6 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`one line`",
|
|
"+`multi line`",
|
|
" `one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a481b18c353836ec0291fd6a2e9ea424de6b7a8c..671ff7c523a3b938440bc9534540d94f391acd9e"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 777fde6..2b8c0dd 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-`multi line`",
|
|
"-`one line`",
|
|
" `one line`",
|
|
"+`multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "671ff7c523a3b938440bc9534540d94f391acd9e..ba89b5cfbffb97d143c19125b8ed8e468113cd32"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 2b8c0dd..399f117 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-`one line`",
|
|
" `multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ba89b5cfbffb97d143c19125b8ed8e468113cd32..ce95b79e18d47915e2eecdef309a73b64417d53c"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 399f117..e69de29 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-`multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ce95b79e18d47915e2eecdef309a73b64417d53c..75f87f22428c68545ebb3f876a1b09caf59d75c9"
|
|
}]
|