From 635b5db3e62e9c4854b9430a384645342fa68317 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 15 Nov 2012 16:01:34 +0100 Subject: [PATCH] Nicer indent in CartoCSS (less likely to be converted) --- test/acceptance/server.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/acceptance/server.js b/test/acceptance/server.js index b0291133..203f7d0a 100644 --- a/test/acceptance/server.js +++ b/test/acceptance/server.js @@ -210,7 +210,7 @@ suite('server', function() { url: '/tiles/my_table5/style?map_key=1234', method: 'POST', headers: {host: 'localhost', 'Content-Type': 'application/x-www-form-urlencoded' }, - data: querystring.stringify({style: 'Map {background-color:#fff;}'}) + data: querystring.stringify({style: 'Map { background-color:#fff; }'}) },{ }, function(res) { assert.equal(res.statusCode, 200, res.body); @@ -224,7 +224,7 @@ suite('server', function() { url: '/tiles/my_table5/style?api_key=1234', method: 'POST', headers: {host: 'localhost', 'Content-Type': 'application/x-www-form-urlencoded' }, - data: querystring.stringify({style: 'Map {background-color:#fff;}'}) + data: querystring.stringify({style: 'Map { background-color:#fff; }'}) },{}, function(res) { assert.equal(res.statusCode, 200, res.body); done(); @@ -237,7 +237,7 @@ suite('server', function() { url: '/tiles/my_table5/style?map_key=1234', method: 'POST', headers: {host: 'localhost', 'Content-Type': 'application/x-www-form-urlencoded' }, - data: querystring.stringify({style: 'Map {background-color:#fff;}'}) + data: querystring.stringify({style: 'Map { background-color:#fff; }'}) },{ }, function(res) { assert.equal(res.statusCode, 200, res.body); @@ -245,7 +245,7 @@ suite('server', function() { url: '/tiles/my_table5/style', method: 'POST', headers: {host: 'localhost', 'Content-Type': 'application/x-www-form-urlencoded' }, - data: querystring.stringify({style: 'Map {background-color:#aaa;}'}) + data: querystring.stringify({style: 'Map { background-color:#aaa; }'}) },{}, function(res) { // FIXME: should be 401 Unauthorized assert.equal(res.statusCode, 500, res.body); @@ -259,7 +259,7 @@ suite('server', function() { status: 200, }, function(res) { var parsed = JSON.parse(res.body); - assert.equal(parsed.style, 'Map {background-color:#fff;}'); + assert.equal(parsed.style, 'Map { background-color:#fff; }'); assert.equal(parsed.style_version, '2.0.0'); done(); }); @@ -269,7 +269,7 @@ suite('server', function() { }); test("post'ing good style returns 200 then getting returns original style", function(done){ - var style = 'Map {background-color:#fff;}'; + var style = 'Map { background-color:#fff; }'; assert.response(server, { url: '/tiles/my_table5/style?map_key=1234', method: 'POST', @@ -307,7 +307,7 @@ suite('server', function() { }); test("post'ing good style with style_convert returns 200 then getting returns converted style", function(done){ - var style = 'Map {background-color:#fff;}'; + var style = 'Map { background-color:#fff; }'; assert.response(server, { url: '/tiles/my_table5/style?map_key=1234', method: 'POST', @@ -357,7 +357,7 @@ suite('server', function() { status: 200, }, function(res) { var parsed = JSON.parse(res.body); - assert.equal(parsed.style, 'Map {background-color:#fff;}'); + assert.equal(parsed.style, 'Map { background-color:#fff; }'); //assert.equal(parsed.version, '2.0.0'); done(); });