diff --git a/libraries/redis-wrapper/package.json b/libraries/redis-wrapper/package.json index 2bd45e3d3c..b16bc442f2 100644 --- a/libraries/redis-wrapper/package.json +++ b/libraries/redis-wrapper/package.json @@ -6,7 +6,7 @@ "author": "ShareLaTeX", "license": "ISC", "scripts": { - "test": "mocha --require coffee-script/register test.coffee" + "test": "mocha --require coffee-script/register test/unit/src/*.coffee" }, "dependencies": { "coffee-script": "1.8.0", diff --git a/libraries/redis-wrapper/health.coffee b/libraries/redis-wrapper/test/scripts/standalone.coffee similarity index 89% rename from libraries/redis-wrapper/health.coffee rename to libraries/redis-wrapper/test/scripts/standalone.coffee index feb02a7f88..1702e06d1a 100644 --- a/libraries/redis-wrapper/health.coffee +++ b/libraries/redis-wrapper/test/scripts/standalone.coffee @@ -1,7 +1,7 @@ # execute this script with a redis container running to test the health check # starting and stopping redis with this script running is a good test -redis = require "./index.coffee" +redis = require "../../index.coffee" rclient = redis.createClient({host:"localhost",port:"6379"}) setInterval () -> diff --git a/libraries/redis-wrapper/test.coffee b/libraries/redis-wrapper/test/unit/src/test.coffee similarity index 97% rename from libraries/redis-wrapper/test.coffee rename to libraries/redis-wrapper/test/unit/src/test.coffee index e3586ee735..98af6cf255 100644 --- a/libraries/redis-wrapper/test.coffee +++ b/libraries/redis-wrapper/test/unit/src/test.coffee @@ -3,7 +3,7 @@ SandboxedModule = require('sandboxed-module') assert = require('assert') path = require('path') sinon = require('sinon') -modulePath = path.join __dirname, "./index.coffee" +modulePath = path.join __dirname, "./../../../index.coffee" expect = require("chai").expect describe "index", ->