Skip to content

Commit

Permalink
modified multi bundle unique test for removal of hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 23, 2014
1 parent 5ea1412 commit 32d4054
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.markdown
Expand Up @@ -19,6 +19,10 @@ for path masking

removes derequire for performance reasons

.external(bundle) has been removed for now

semicolon at end of output

# 4.2.2

fixes a bug applying transforms to symlinked files by resolving the realpath
Expand Down
3 changes: 2 additions & 1 deletion test/multi_bundle.js
Expand Up @@ -43,7 +43,8 @@ test('multi bundle', function (t) {
});
});

test('multi bundle', function (t) {
// re-enable this in future releases
if (false) test('multi bundle', function (t) {
t.plan(8);

var core = browserify({ exposeAll: true });
Expand Down
6 changes: 3 additions & 3 deletions test/multi_bundle_unique.js
Expand Up @@ -12,14 +12,14 @@ test('unique require', function (t) {
externalRequireName: 'unique_require',
prelude: prelude
});
core.require(__dirname + '/multi_bundle/b.js', { expose: 'b' });
core.require(__dirname + '/multi_bundle/b.js', { expose: './b' });

var app = browserify(
[__dirname + '/multi_bundle/a.js'],
{ prelude: prelude }
);
// inform this bundle that b exists in another bundle
app.external(__dirname + '/multi_bundle/b.js');
app.external('./b');

core.bundle(function (err, src) {
var c = {
Expand Down Expand Up @@ -49,7 +49,7 @@ test('unique require', function (t) {
// because it was part of the core bundle
t.equal(c.baton.times, 1);

t.equal(c.unique_require('b'), 'foo');
t.equal(c.unique_require('./b'), 'foo');
});
});
});
Expand Down

0 comments on commit 32d4054

Please sign in to comment.