Files
2023-04-05 22:22:09 +08:00

25 lines
748 B
JavaScript

var util = require('../util.test');
module.exports = function() {
util.request('http://js1.test.whistlejs.com/index.html?resBody=_', function(res, body) {
body.should.equal('_<script>js</script>');
});
util.request({
method: 'post',
url: 'https://js2.test.whistlejs.com/index.html?resBody=_'
}, function(res, body) {
body.should.equal('_js');
});
util.request({
method: 'post',
url: 'https://js3.test.whistlejs.com/index.html?resBody=_'
}, function(res, body) {
body.should.equal('_');
});
util.request('http://jsbody2.whistlejs.com/index.html?resBody=_', function(res, body) {
body.should.equal('<!DOCTYPE html>\r\n<script src="http://1"></script>0<script src="https://2"></script>');
});
};