diff --git a/test/integration-test/src/Export/All/All.js b/test/integration-test/src/Export/All/All.js new file mode 100644 index 00000000..f81394c4 --- /dev/null +++ b/test/integration-test/src/Export/All/All.js @@ -0,0 +1 @@ +export * from './Lib.js' \ No newline at end of file diff --git a/test/integration-test/src/Export/All/All.test.js b/test/integration-test/src/Export/All/All.test.js new file mode 100644 index 00000000..100c3f24 --- /dev/null +++ b/test/integration-test/src/Export/All/All.test.js @@ -0,0 +1,14 @@ +import assert from 'assert'; +import {find} from '../../../util'; + +describe('test/Export/All/All:', ()=>{ + it('re exported all the exports', ()=>{ + const doc1 = find('longname', 'src/Export/All/All.js~a'); + const doc2 = find('longname', 'src/Export/All/All.js~b'); + const doc3 = find('longname', 'src/Export/All/All.js~c'); + + assert.equal(doc1.export, true); + assert.equal(doc2.export, true); + assert.equal(doc3.export, true); + }) +}); diff --git a/test/integration-test/src/Export/All/Lib.js b/test/integration-test/src/Export/All/Lib.js new file mode 100644 index 00000000..ac0bb00c --- /dev/null +++ b/test/integration-test/src/Export/All/Lib.js @@ -0,0 +1,3 @@ +export const a = 1; +export const b = 2; +export const c = 3; \ No newline at end of file diff --git a/test/integration-test/src/Export/Reexport/Lib.js b/test/integration-test/src/Export/Reexport/Lib.js new file mode 100644 index 00000000..6e68f74b --- /dev/null +++ b/test/integration-test/src/Export/Reexport/Lib.js @@ -0,0 +1,10 @@ +const a = 1; +const b = 2; +const c = 3; +const d = 4; +export { + a, + b, + c +}; +export default d; \ No newline at end of file diff --git a/test/integration-test/src/Export/Reexport/Reexport.js b/test/integration-test/src/Export/Reexport/Reexport.js new file mode 100644 index 00000000..ed4ce4c5 --- /dev/null +++ b/test/integration-test/src/Export/Reexport/Reexport.js @@ -0,0 +1,8 @@ +import d, { a, b, c } from './Lib.js' + +export { + a, + b, + c, + d +} \ No newline at end of file diff --git a/test/integration-test/src/Export/Reexport/Reexport.test.js b/test/integration-test/src/Export/Reexport/Reexport.test.js new file mode 100644 index 00000000..498b37d5 --- /dev/null +++ b/test/integration-test/src/Export/Reexport/Reexport.test.js @@ -0,0 +1,16 @@ +import assert from 'assert'; +import {find} from '../../../util'; + +describe('test/Export/Reexport/Reexport:', ()=>{ + it('re exported all the exports', ()=>{ + const doc1 = find('longname', 'src/Export/Reexport/Reexport.js~a'); + const doc2 = find('longname', 'src/Export/Reexport/Reexport.js~b'); + const doc3 = find('longname', 'src/Export/Reexport/Reexport.js~c'); + const doc4 = find('longname', 'src/Export/Reexport/Reexport.js~d'); + + assert.equal(doc1.export, true); + assert.equal(doc2.export, true); + assert.equal(doc3.export, true); + assert.equal(doc4.export, true); + }) +});