mirror of
https://github.com/avwo/whistle.git
synced 2026-10-19 07:01:44 +08:00
22 lines
543 B
JavaScript
22 lines
543 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://css1.test.whistlejs.com/index.html?resBody=_', function(res, body) {
|
|
body.should.equal('_<style>css</style>');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://css2.test.whistlejs.com/index.html?resBody=_'
|
|
}, function(res, body) {
|
|
body.should.equal('_css');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://css3.test.whistlejs.com/index.html?resBody=_'
|
|
}, function(res, body) {
|
|
body.should.equal('_');
|
|
});
|
|
};
|