JS: Add test with header access

This commit is contained in:
Asger F
2019-08-06 15:43:39 +01:00
parent 075e47dce2
commit 2df0b08b26
2 changed files with 2 additions and 0 deletions

View File

@@ -192,3 +192,4 @@ test_getAResponseDataNode
| tst.js:151:5:151:23 | superagent.get(url) | tst.js:151:30:151:32 | err | error | false |
| tst.js:151:5:151:23 | superagent.get(url) | tst.js:151:35:151:37 | res | stream | false |
| tst.js:160:5:160:17 | xhr.send(url) | tst.js:162:9:162:29 | xhr.get ... eJson() | json | false |
| tst.js:160:5:160:17 | xhr.send(url) | tst.js:163:9:163:32 | xhr.get ... aders() | headers | false |

View File

@@ -160,5 +160,6 @@ import {ClientRequest, net} from 'electron';
xhr.send(url);
xhr.addEventListener('readystatechange', function() {
xhr.getResponseJson();
xhr.getResponseHeaders();
});
})