mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
25 lines
748 B
JavaScript
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>');
|
|
});
|
|
};
|