mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
|
|
util.request({
|
|
url: 'http://prependbin.bodybin.appendbin.test.whistlejs.com/?doNotParseJson',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
body.should.be.equal('我们是社会主义接班人!');
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://prependbin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://bodybin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://appendbin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://prependbin.bodybin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://prependbin.appendbin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
|
|
util.request({
|
|
url: 'http://bodybin.appendbin.test.whistlejs.com/?resBody=',
|
|
method: 'post'
|
|
}, function(res, body) {
|
|
body.should.be.equal(res.body);
|
|
});
|
|
};
|