Fix test for invalid font usage after Windshaft update (#90)

NOTE: the error is less friendly now, see
      http://github.com/mapbox/carto/issues/242
This commit is contained in:
Sandro Santilli 2013-11-28 18:41:45 +01:00
parent a9d9b765e8
commit ccfdacff5b

View File

@ -648,7 +648,9 @@ suite('multilayer', function() {
}, {}, function(res) {
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
var parsed = JSON.parse(res.body);
assert.deepEqual(parsed, {"errors":["style0:1:10 Invalid value for text-name, the type expression is expected. cartodb_id (of type keyword) was given."]});
assert.equal(parsed.errors.length, 1);
var errmsg = parsed.errors[0];
assert.ok(errmsg.match(/text-face-name.*Dejagnu/), parsed.errors.toString());
done();
});
});