From 50a35fa8c755f6f8a71692d32e563635743fc0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 4 Jul 2019 12:21:31 +0200 Subject: [PATCH] Add test --- test/acceptance/cache.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 test/acceptance/cache.js diff --git a/test/acceptance/cache.js b/test/acceptance/cache.js deleted file mode 100644 index f8914ca9..00000000 --- a/test/acceptance/cache.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var server = require('../../app/server')(); -const assert = require('../support/assert'); - -describe('Cache', function () { - it('should return a Vary header', function (done) { - assert.response(server, { - url: '/api/v1/sql?api_key=1234&g=select%20*%20from%20untitle_table_4', - headers: { - host: 'vizzuality.cartodb.com' - }, - method: 'GET' - }, - {}, - function(err, res) { - assert.equal(res.headers.vary, 'Authorization'); - done(); - }); - }); -});