From 95d694f6c5cddd449e96074968e037098884e990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 16 Mar 2018 16:29:00 +0100 Subject: [PATCH] Fix unit test --- test/unit/cartodb/prepare-context.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/cartodb/prepare-context.test.js b/test/unit/cartodb/prepare-context.test.js index f71bed2e..82526fe9 100644 --- a/test/unit/cartodb/prepare-context.test.js +++ b/test/unit/cartodb/prepare-context.test.js @@ -178,10 +178,9 @@ describe('prepare-context', function() { return done(err); } - var query = res.locals; - assert.deepEqual(config, query.config); - assert.equal('test', query.api_key); - assert.equal(undefined, query.non_included); + assert.deepEqual(config, req.query.config); + assert.equal('test', req.query.api_key); + assert.equal(undefined, req.query.non_included); done(); }); });