Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Mar 9, 2017
1 parent 3d311f7 commit a6aa96e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/function/export-from-multiple-no-default-conflict/_config.js
@@ -0,0 +1,12 @@
const assert = require( 'assert' );

module.exports = {
description: 'export from does not cause erroneous warning if multiple modules export default',
warnings: [],
exports: exports => {
assert.deepEqual( exports, {
foo: 'foo',
bar: 'bar'
});
}
};
2 changes: 2 additions & 0 deletions test/function/export-from-multiple-no-default-conflict/a.js
@@ -0,0 +1,2 @@
export default 1;
export const foo = 'foo';
2 changes: 2 additions & 0 deletions test/function/export-from-multiple-no-default-conflict/b.js
@@ -0,0 +1,2 @@
export default 2;
export const bar = 'bar';
@@ -0,0 +1,2 @@
export * from './a.js';
export * from './b.js';

0 comments on commit a6aa96e

Please sign in to comment.