Replace server test with multilayer one

This commit is contained in:
Raul Ochoa
2015-03-30 12:32:09 +02:00
parent ada616ee6a
commit e7544e84c2
2 changed files with 56 additions and 13 deletions
-13
View File
@@ -121,19 +121,6 @@ suite.skip('server old_api', function() {
//
/////////////////////////////////////////////////////////////////////////////////
test("post'ing unparseable style returns 400 with error", function(done){
assert.response(server, {
url: '/tiles/my_table3/style?map_key=1234',
method: 'POST',
headers: {host: 'localhost', 'Content-Type': 'application/x-www-form-urlencoded' },
data: querystring.stringify({style: '#my_table3{'})
},{}, function(res) {
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
assert.ok( new RegExp(/missing closing/i).test(res.body) );
done();
});
});
test("post'ing multiple bad styles returns 400 with error array", function(done){
assert.response(server, {
url: '/tiles/my_table4/style?map_key=1234',