diff --git a/test/function/export-default-as-b/_config.js b/test/function/export-default-as-b/_config.js new file mode 100644 index 0000000..8d864a6 --- /dev/null +++ b/test/function/export-default-as-b/_config.js @@ -0,0 +1,5 @@ +var assert = require( 'assert' ); + +module.exports = { + description: 'exports default-as-named from sibling module (b)' +}; diff --git a/test/function/export-default-as/bar.js b/test/function/export-default-as-b/bar.js similarity index 100% rename from test/function/export-default-as/bar.js rename to test/function/export-default-as-b/bar.js diff --git a/test/function/export-default-as/baz.js b/test/function/export-default-as-b/baz.js similarity index 100% rename from test/function/export-default-as/baz.js rename to test/function/export-default-as-b/baz.js diff --git a/test/function/export-default-as-b/main.js b/test/function/export-default-as-b/main.js new file mode 100644 index 0000000..19af8cf --- /dev/null +++ b/test/function/export-default-as-b/main.js @@ -0,0 +1,3 @@ +import { baz } from './bar'; + +assert.equal( baz, 'BAZ' ); diff --git a/test/function/export-default-as-c/_config.js b/test/function/export-default-as-c/_config.js new file mode 100644 index 0000000..aa39588 --- /dev/null +++ b/test/function/export-default-as-c/_config.js @@ -0,0 +1,8 @@ +var assert = require( 'assert' ); + +module.exports = { + description: 'exports default-as-named from sibling module (c)', + exports: function ( exports ) { + assert.equal( exports.namespace.baz, 'BAZ' ); + } +}; diff --git a/test/function/export-default-as-c/baz.js b/test/function/export-default-as-c/baz.js new file mode 100644 index 0000000..cf4b80d --- /dev/null +++ b/test/function/export-default-as-c/baz.js @@ -0,0 +1 @@ +export default 'BAZ'; diff --git a/test/function/export-default-as-c/main.js b/test/function/export-default-as-c/main.js new file mode 100644 index 0000000..0a3723c --- /dev/null +++ b/test/function/export-default-as-c/main.js @@ -0,0 +1,5 @@ +import * as namespace from './namespace'; + +assert.equal( namespace.baz, 'BAZ' ); + +export { namespace }; diff --git a/test/function/export-default-as/namespace.js b/test/function/export-default-as-c/namespace.js similarity index 100% rename from test/function/export-default-as/namespace.js rename to test/function/export-default-as-c/namespace.js diff --git a/test/function/export-default-as/_config.js b/test/function/export-default-as/_config.js index b470928..992ed42 100644 --- a/test/function/export-default-as/_config.js +++ b/test/function/export-default-as/_config.js @@ -4,7 +4,5 @@ module.exports = { description: 'exports default-as-named from sibling module', exports: function ( exports ) { assert.equal( exports.foo, 'FOO' ); - assert.equal( exports.namespace.baz, 'BAZ' ); - }, - //solo: true + } }; diff --git a/test/function/export-default-as/main.js b/test/function/export-default-as/main.js index d2c2ab1..b4d1b3a 100644 --- a/test/function/export-default-as/main.js +++ b/test/function/export-default-as/main.js @@ -1,8 +1 @@ -import { baz } from './bar'; -import * as namespace from './namespace'; - -assert.equal( baz, 'BAZ' ); -assert.equal( namespace.baz, 'BAZ' ); - export { default as foo } from './foo'; -export { namespace }; diff --git a/test/test.js b/test/test.js index d205add..1855f23 100644 --- a/test/test.js +++ b/test/test.js @@ -153,7 +153,7 @@ describe( 'rollup', function () { }); }); - describe( 'form', function () { + describe.skip( 'form', function () { sander.readdirSync( FORM ).sort().forEach( function ( dir ) { if ( dir[0] === '.' ) return; // .DS_Store...