mirror of
https://github.com/avwo/whistle.git
synced 2026-10-19 07:01:44 +08:00
18 lines
392 B
JavaScript
18 lines
392 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request({
|
|
url: 'https://reqbody.test.whistlejs.com/',
|
|
method: 'post'
|
|
}, function(res, data) {
|
|
data.body.should.equal('body\r\nbody');
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://reqbody.test.whistlejs.com/',
|
|
method: 'post'
|
|
}, function(res, data) {
|
|
data.body.should.equal('body\r\nbody');
|
|
});
|
|
};
|