Просмотр исходного кода

[misc] reference module via js/loose file extension

Jakob Ackermann 5 лет назад
Родитель
Сommit
7eccce2ed0

+ 1 - 1
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 () ->

+ 1 - 1
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", ->