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