diff --git a/test/acceptance/server.js b/test/acceptance/server.js index 0f30db81..ad88d7f0 100644 --- a/test/acceptance/server.js +++ b/test/acceptance/server.js @@ -192,8 +192,12 @@ suite('server', function() { method: 'GET' },{ status: 200, - body: JSON.stringify({style: 'Map {background-color:#fff;}'}) - }, function() { done(); }); + }, function(res) { + var parsed = JSON.parse(res.body); + assert.equal(parsed.style, 'Map {background-color:#fff;}'); + //assert.equal(parsed.version, '2.0.0'); + done(); + }); }); }); @@ -217,8 +221,12 @@ suite('server', function() { method: 'GET' },{ status: 200, - body: JSON.stringify({style: style}) - }, function() { done(); }); + }, function(res) { + var parsed = JSON.parse(res.body); + assert.equal(parsed.style, style); + //assert.equal(parsed.version, '2.0.0'); + done(); + }); }); @@ -248,8 +256,12 @@ suite('server', function() { method: 'GET' },{ status: 200, - body: JSON.stringify({style: 'Map {background-color:#fff;}'}) - }, function() { done(); }); + }, function(res) { + var parsed = JSON.parse(res.body); + assert.equal(parsed.style, 'Map {background-color:#fff;}'); + //assert.equal(parsed.version, '2.0.0'); + done(); + }); }); });