Browse Source

Add failing test for exporting a global.

gh-669
Oskar Segersvärd 9 years ago
parent
commit
4afbf70c8a
  1. 9
      test/function/export-global/_config.js
  2. 1
      test/function/export-global/main.js

9
test/function/export-global/_config.js

@ -0,0 +1,9 @@
var assert = require( 'assert' );
module.exports = {
description: 'any global variables in scope can be re-exported',
exports: function ( exports ) {
assert.equal( exports.Buffer, Buffer );
}
};

1
test/function/export-global/main.js

@ -0,0 +1 @@
export { Buffer };
Loading…
Cancel
Save