From 2250e6d608ed9af950209ea16cfa06e2e010d2d5 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 27 Apr 2015 18:00:47 +0200 Subject: [PATCH] fix jshint --- test/unit/cartodb/template_maps_auth.test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/unit/cartodb/template_maps_auth.test.js b/test/unit/cartodb/template_maps_auth.test.js index 592e0257..76258695 100644 --- a/test/unit/cartodb/template_maps_auth.test.js +++ b/test/unit/cartodb/template_maps_auth.test.js @@ -1,11 +1,11 @@ +require('../../support/test_helper'); + var assert = require('assert'); var RedisPool = require('redis-mpool'); -var TemplateMaps = require('../../../lib/cartodb/template_maps'); -var test_helper = require('../../support/test_helper'); -var Step = require('step'); -var tests = module.exports = {}; -suite('template_maps_auth', function() { +var TemplateMaps = require('../../../lib/cartodb/template_maps'); + +describe('template_maps_auth', function() { // configure redis pool instance to use in tests var redisPool = new RedisPool(global.environment.redis), @@ -84,15 +84,15 @@ suite('template_maps_auth', function() { ]; authorizationTestScenarios.forEach(function(testScenario) { - test(testScenario.desc, function(done) { + it(testScenario.desc, function(done) { var debugMessage = testScenario.expected ? 'should be authorized' : 'unexpectedly authorized'; var result = templateMaps.isAuthorized(testScenario.template, testScenario.token); assert.equal(result, testScenario.expected, debugMessage); done(); - }) + }); }); - test("auth as 'open' string is authorized", function(done) { + it("auth as 'open' string is authorized", function(done) { var template = { name: 'wadus_template', auth: 'open'