Permalink
Browse files

failing node_modules test

  • Loading branch information...
1 parent c24d858 commit bf5c3c4b48f4cce1ae5f34862e8cf855df0e8208 @substack substack committed May 10, 2011
View
@@ -0,0 +1,19 @@
+var assert = require('assert');
+var browserify = require('browserify');
+var vm = require('vm');
+var Hash = require('hashish');
+
+exports.modules = function () {
+ var src = browserify.bundle({
+ base : {
+ 'foomoduletest' : __dirname + '/modules/foomoduletest'
+ }
+ });
+
+ assert.ok(typeof src === 'string');
+ assert.ok(src.length > 0);
+
+ var c = {};
+ vm.runInNewContext(src, c);
+ assert.eql(c.require('foomoduletest').bar, 55)
+};
@@ -0,0 +1 @@
+exports.bar = require('barmoduletest');

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,8 @@
+{
+ "name" : "foomoduletest",
+ "version" : "0.0.1",
+ "main" : "./index.js",
+ "dependencies" : {
+ "barmoduletest" : "=0.0.x"
+ }
+}

0 comments on commit bf5c3c4

Please sign in to comment.