diff --git a/test/function/export-from-external/_config.js b/test/function/export-from-external/_config.js new file mode 100644 index 0000000..e3daf46 --- /dev/null +++ b/test/function/export-from-external/_config.js @@ -0,0 +1,14 @@ +var assert = require( 'assert' ); +var path = require( 'path' ); + +module.exports = { + description: 'exports directly from an external module', + options: { + external: [ 'path' ] + }, + exports: function ( exports ) { + assert.equal( exports.sep, path.sep ); + } +}; + +// https://github.com/esperantojs/esperanto/issues/161 diff --git a/test/function/export-from-external/main.js b/test/function/export-from-external/main.js new file mode 100644 index 0000000..c5217d9 --- /dev/null +++ b/test/function/export-from-external/main.js @@ -0,0 +1 @@ +export { sep } from 'path';