From 7accd4adbf28a81bdce8cd85d31c6623c6ee9f7b Mon Sep 17 00:00:00 2001 From: johvik Date: Thu, 13 Feb 2014 20:56:30 +0100 Subject: [PATCH] Fixed module exports --- index.js | 2 +- package.json | 2 +- test/sandbox.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 1b7b45f..ff32788 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -exports = require('./lib/sandbox'); +module.exports = require('./lib/sandbox'); diff --git a/package.json b/package.json index e04ffb1..f37c0cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node_vm_sandbox", - "version": "0.0.2", + "version": "0.0.3", "description": "Runs a script in a vm within a child process", "author": "johvik", "repository": { diff --git a/test/sandbox.spec.js b/test/sandbox.spec.js index 5deed53..fd2be2a 100644 --- a/test/sandbox.spec.js +++ b/test/sandbox.spec.js @@ -3,7 +3,7 @@ process.env.NODE_ENV = 'test'; var path = require('path'); var should = require('should'); -var sandbox = require('../lib/sandbox'); +var sandbox = require('../'); describe('sandbox', function() { it('should not run', function(done) {