Make test tolerant to additional fields in responses to POST style

This commit is contained in:
Sandro Santilli 2012-10-08 16:41:16 +02:00 committed by Luis Bosque
parent a42f03c224
commit 8d5c52ce1b

View File

@ -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();
});
});
});