From 32d40543781f3f0486ddb49fab7f954c2075dd27 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Wed, 23 Jul 2014 01:09:26 -0700 Subject: [PATCH] modified multi bundle unique test for removal of hashing --- changelog.markdown | 4 ++++ test/multi_bundle.js | 3 ++- test/multi_bundle_unique.js | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/changelog.markdown b/changelog.markdown index 3654830da..0a8db2751 100644 --- a/changelog.markdown +++ b/changelog.markdown @@ -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 diff --git a/test/multi_bundle.js b/test/multi_bundle.js index 8f437a26f..a4873bd80 100644 --- a/test/multi_bundle.js +++ b/test/multi_bundle.js @@ -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 }); diff --git a/test/multi_bundle_unique.js b/test/multi_bundle_unique.js index 07663d3aa..3ff18b438 100644 --- a/test/multi_bundle_unique.js +++ b/test/multi_bundle_unique.js @@ -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 = { @@ -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'); }); }); });