зеркало из https://github.com/github/codeql.git
JS: Test for fetch
This commit is contained in:
Родитель
b8c1714ba9
Коммит
f88a7162c5
|
@ -44,6 +44,7 @@ test_ClientRequest
|
|||
| tst.js:129:5:129:37 | request ... true}) |
|
||||
| tst.js:133:5:133:18 | axios.get(url) |
|
||||
| tst.js:134:5:134:48 | axios.g ... json'}) |
|
||||
| tst.js:139:5:139:14 | fetch(url) |
|
||||
test_getADataNode
|
||||
| tst.js:53:5:53:23 | axios({data: data}) | tst.js:53:18:53:21 | data |
|
||||
| tst.js:57:5:57:39 | axios.p ... data2}) | tst.js:57:19:57:23 | data1 |
|
||||
|
@ -128,6 +129,7 @@ test_getUrl
|
|||
| tst.js:133:5:133:18 | axios.get(url) | tst.js:133:15:133:17 | url |
|
||||
| tst.js:134:5:134:48 | axios.g ... json'}) | tst.js:134:15:134:47 | { url: ... 'json'} |
|
||||
| tst.js:134:5:134:48 | axios.g ... json'}) | tst.js:134:22:134:24 | url |
|
||||
| tst.js:139:5:139:14 | fetch(url) | tst.js:139:11:139:13 | url |
|
||||
test_getAResponseDataNode
|
||||
| tst.js:19:5:19:23 | requestPromise(url) | tst.js:19:5:19:23 | requestPromise(url) | text | true |
|
||||
| tst.js:21:5:21:23 | superagent.get(url) | tst.js:21:5:21:23 | superagent.get(url) | text | true |
|
||||
|
@ -164,3 +166,4 @@ test_getAResponseDataNode
|
|||
| tst.js:129:5:129:37 | request ... true}) | tst.js:129:5:129:37 | request ... true}) | json | true |
|
||||
| tst.js:133:5:133:18 | axios.get(url) | tst.js:133:5:133:18 | axios.get(url) | json | true |
|
||||
| tst.js:134:5:134:48 | axios.g ... json'}) | tst.js:134:5:134:48 | axios.g ... json'}) | json | true |
|
||||
| tst.js:139:5:139:14 | fetch(url) | tst.js:139:5:139:14 | fetch(url) | fetch.response | true |
|
||||
|
|
|
@ -133,3 +133,8 @@ import {ClientRequest, net} from 'electron';
|
|||
axios.get(url).then(response => response.data);
|
||||
axios.get({ url: url, responseType: 'json'}).then(response => response.data);
|
||||
})
|
||||
|
||||
|
||||
(function() {
|
||||
fetch(url).then(r => r.json()).then(json => json);
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче