Remove redis keys after each test

This commit is contained in:
Raul Ochoa 2015-09-25 16:23:14 +02:00
parent bc818ca9cf
commit ebf1627753

View File

@ -1,4 +1,4 @@
require('../../support/test_helper');
var testHelper = require('../../support/test_helper');
var assert = require('../../support/assert');
var testClient = require('./support/test_client');
@ -18,6 +18,10 @@ describe('wrap x coordinate', function() {
BaseController.prototype.req2params = req2paramsFn;
});
afterEach(function(done) {
testHelper.deleteRedisKeys({'user:localhost:mapviews:global': 5}, done);
});
describe('renders correct tile', function() {
var IMG_TOLERANCE_PER_MIL = 20;