Browse Source

add a failing test for re-exporting and renaming multiple 'default' exports

contingency-plan
Arpad Borsos 10 years ago
parent
commit
4880efe31b
  1. 3
      test/function/export-from-default-renamed/_config.js
  2. 1
      test/function/export-from-default-renamed/a.js
  3. 1
      test/function/export-from-default-renamed/b.js
  4. 2
      test/function/export-from-default-renamed/foo.js
  5. 3
      test/function/export-from-default-renamed/main.js

3
test/function/export-from-default-renamed/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'export from works with multiple renamed default exports'
};

1
test/function/export-from-default-renamed/a.js

@ -0,0 +1 @@
export default 'a';

1
test/function/export-from-default-renamed/b.js

@ -0,0 +1 @@
export default 'b';

2
test/function/export-from-default-renamed/foo.js

@ -0,0 +1,2 @@
export { default as a } from './a';
export { default as b } from './b';

3
test/function/export-from-default-renamed/main.js

@ -0,0 +1,3 @@
import { a, b } from './foo';
assert.equal( a, 'a' );
assert.equal( b, 'b' );
Loading…
Cancel
Save