mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
24 lines
633 B
JavaScript
24 lines
633 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://log1.test.whistlejs.com/index.html?resBody=_', function(res, body) {
|
|
body.length.should.above(500);
|
|
body.should.containEql('<script>log</script>\r\n_');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://log2.test.whistlejs.com/index.html?resBody=_'
|
|
}, function(res, body) {
|
|
body.length.should.above(500);
|
|
body.should.containEql('_\r\nlog');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://log3.test.whistlejs.com/index.html?resBody=_'
|
|
}, function(res, body) {
|
|
body.should.equal('_');
|
|
});
|
|
};
|