mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
3 changed files with 37 additions and 17 deletions
@ -0,0 +1,9 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'exports the same function more than one way (#648)', |
|||
exports: function ( exports ) { |
|||
assert.equal( exports.foo, exports.bar ); |
|||
assert.equal( exports.foo(), 42 ); |
|||
} |
|||
}; |
@ -0,0 +1,8 @@ |
|||
var bar; |
|||
bar = foo; |
|||
|
|||
function foo () { |
|||
return 42; |
|||
} |
|||
|
|||
export { foo, bar }; |
Loading…
Reference in new issue