Browse Source

add test for #esperanto/161

contingency-plan
Rich-Harris 9 years ago
parent
commit
7bed21c3da
  1. 14
      test/function/export-from-external/_config.js
  2. 1
      test/function/export-from-external/main.js

14
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

1
test/function/export-from-external/main.js

@ -0,0 +1 @@
export { sep } from 'path';
Loading…
Cancel
Save