From f33c3ce21adef5692cb4c17b3375216419f8e665 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 25 Sep 2015 19:56:28 +0200 Subject: [PATCH] rmdirRecursiveSync DRY --- test/acceptance/ported/external_resources.js | 20 +++----------------- test/acceptance/ported/regressions.js | 19 ++----------------- test/acceptance/ported/server.js | 18 ++---------------- test/acceptance/ported/server_gettile.js | 19 ++----------------- test/support/test_helper.js | 17 ++++++++++++++++- 5 files changed, 25 insertions(+), 68 deletions(-) diff --git a/test/acceptance/ported/external_resources.js b/test/acceptance/ported/external_resources.js index d3e18f15..a0affa83 100644 --- a/test/acceptance/ported/external_resources.js +++ b/test/acceptance/ported/external_resources.js @@ -1,4 +1,4 @@ -require('../../support/test_helper'); +var testHelper = require('../../support/test_helper'); var assert = require('../../support/assert'); @@ -11,20 +11,6 @@ var nock = require('nock'); var BaseController = require('../../../lib/cartodb/controllers/base'); -function rmdir_recursive_sync(dirname) { - var files = fs.readdirSync(dirname); - for (var i=0; i