Skip to content

Commit

Permalink
browserify field test without a main, passes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 21, 2011
1 parent e8c4acb commit bdf084b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/field.js
Expand Up @@ -25,3 +25,15 @@ exports.fieldObject = function () {
'browser'
);
};

exports.missObject = function () {
var dir = __dirname + '/field/';
var src = browserify(dir + '/miss.js').bundle();

var c = {};
vm.runInNewContext(src, c);
assert.equal(
c.require('./miss.js'),
'!browser'
);
};

0 comments on commit bdf084b

Please sign in to comment.