JS: Test for 'superagent' package

This commit is contained in:
Asger F
2019-08-05 12:32:19 +01:00
parent ce4f098625
commit 4eb072a376
2 changed files with 18 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ test_ClientRequest
| tst.js:143:5:143:12 | got(url) |
| tst.js:144:5:144:28 | got(url ... true }) |
| tst.js:145:5:145:19 | got.stream(url) |
| tst.js:149:5:149:23 | superagent.get(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 |
@@ -136,9 +137,10 @@ test_getUrl
| tst.js:143:5:143:12 | got(url) | tst.js:143:9:143:11 | url |
| tst.js:144:5:144:28 | got(url ... true }) | tst.js:144:9:144:11 | url |
| tst.js:145:5:145:19 | got.stream(url) | tst.js:145:16:145:18 | url |
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:20:149:22 | 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 |
| tst.js:21:5:21:23 | superagent.get(url) | tst.js:21:5:21:23 | superagent.get(url) | stream | true |
| tst.js:25:5:25:14 | axios(url) | tst.js:25:5:25:14 | axios(url) | json | true |
| tst.js:27:5:27:18 | axios.get(url) | tst.js:27:5:27:18 | axios.get(url) | json | true |
| tst.js:29:5:29:23 | axios({ url: url }) | tst.js:29:5:29:23 | axios({ url: url }) | json | true |
@@ -152,11 +154,11 @@ test_getAResponseDataNode
| tst.js:59:5:59:52 | axios({ ... sData}) | tst.js:59:5:59:52 | axios({ ... sData}) | json | true |
| tst.js:61:5:61:60 | window. ... yData}) | tst.js:61:5:61:60 | window. ... yData}) | fetch.response | true |
| tst.js:63:5:63:68 | got(url ... yData}) | tst.js:63:5:63:68 | got(url ... yData}) | text | true |
| tst.js:65:5:65:23 | superagent.get(url) | tst.js:65:5:65:23 | superagent.get(url) | text | true |
| tst.js:66:5:66:23 | superagent.get(url) | tst.js:66:5:66:23 | superagent.get(url) | text | true |
| tst.js:67:5:67:24 | superagent.post(url) | tst.js:67:5:67:24 | superagent.post(url) | text | true |
| tst.js:68:5:68:23 | superagent.get(url) | tst.js:68:5:68:23 | superagent.get(url) | text | true |
| tst.js:69:5:69:23 | superagent.get(url) | tst.js:69:5:69:23 | superagent.get(url) | text | true |
| tst.js:65:5:65:23 | superagent.get(url) | tst.js:65:5:65:23 | superagent.get(url) | stream | true |
| tst.js:66:5:66:23 | superagent.get(url) | tst.js:66:5:66:23 | superagent.get(url) | stream | true |
| tst.js:67:5:67:24 | superagent.post(url) | tst.js:67:5:67:24 | superagent.post(url) | stream | true |
| tst.js:68:5:68:23 | superagent.get(url) | tst.js:68:5:68:23 | superagent.get(url) | stream | true |
| tst.js:69:5:69:23 | superagent.get(url) | tst.js:69:5:69:23 | superagent.get(url) | stream | true |
| tst.js:89:5:89:23 | axios({host: host}) | tst.js:89:5:89:23 | axios({host: host}) | json | true |
| tst.js:91:5:91:34 | got(rel ... host}) | tst.js:91:5:91:34 | got(rel ... host}) | text | true |
| tst.js:98:15:98:34 | new XMLHttpRequest() | tst.js:103:9:103:21 | this.response | json | false |
@@ -176,3 +178,6 @@ test_getAResponseDataNode
| tst.js:143:5:143:12 | got(url) | tst.js:143:5:143:12 | got(url) | text | true |
| tst.js:144:5:144:28 | got(url ... true }) | tst.js:144:5:144:28 | got(url ... true }) | json | true |
| tst.js:145:5:145:19 | got.stream(url) | tst.js:145:5:145:19 | got.stream(url) | stream | false |
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:5:149:23 | superagent.get(url) | stream | true |
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:30:149:32 | err | error | false |
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:35:149:37 | res | stream | false |

View File

@@ -144,3 +144,10 @@ import {ClientRequest, net} from 'electron';
got(url, { json: true }).then(response => response.body);
got.stream(url).pipe(process.stdout);
})
(function() {
superagent.get(url).end((err, res) => {
err;
res;
});
});