made error_with_context non optional and adapted test's assertion

This commit is contained in:
Daniel García Aubert
2016-06-13 16:14:01 +02:00
parent 2d821f957e
commit d9297d54de
18 changed files with 68 additions and 67 deletions
+2 -2
View File
@@ -124,8 +124,8 @@ describe('named maps provider cache', function() {
getNamedTile({ statusCode: 404 }, function(err, res) {
assert.ok(!err);
assert.deepEqual(
JSON.parse(res.body),
{ errors: ["Template 'template_with_color' of user 'localhost' not found"] }
JSON.parse(res.body).errors,
["Template 'template_with_color' of user 'localhost' not found"]
);
// add template again so it's clean in afterEach