mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
5 changed files with 36 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'function arguments are renamed as appropriate (#32)', |
||||
|
exports: function ( exports ) { |
||||
|
var obj = {}; |
||||
|
assert.strictEqual( exports.foo(), 42 ); |
||||
|
assert.strictEqual( exports.bar( obj ), obj ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,5 @@ |
|||||
|
function thing ( thing ) { |
||||
|
return thing; |
||||
|
} |
||||
|
|
||||
|
export default thing; |
@ -0,0 +1,5 @@ |
|||||
|
function thing () { |
||||
|
return 42; |
||||
|
} |
||||
|
|
||||
|
export default thing; |
@ -0,0 +1,7 @@ |
|||||
|
import foo from './foo'; |
||||
|
import bar from './bar'; |
||||
|
|
||||
|
export { |
||||
|
foo, |
||||
|
bar |
||||
|
}; |
Loading…
Reference in new issue