From 7eccce2ed07b7aa3f0e9b950e725a6e055f8c95d Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 9 Nov 2020 16:16:11 +0000 Subject: [PATCH] [misc] reference module via js/loose file extension --- libraries/redis-wrapper/test/scripts/standalone.coffee | 2 +- libraries/redis-wrapper/test/unit/src/test.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/redis-wrapper/test/scripts/standalone.coffee b/libraries/redis-wrapper/test/scripts/standalone.coffee index 1702e06d1a..1ee02165e7 100644 --- a/libraries/redis-wrapper/test/scripts/standalone.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 "../.." rclient = redis.createClient({host:"localhost",port:"6379"}) setInterval () -> diff --git a/libraries/redis-wrapper/test/unit/src/test.coffee b/libraries/redis-wrapper/test/unit/src/test.coffee index 98af6cf255..465f526a6c 100644 --- a/libraries/redis-wrapper/test/unit/src/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.js" expect = require("chai").expect describe "index", ->