mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
6 changed files with 32 additions and 2 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'illegal name suggestions are ignored' |
|||
}; |
@ -0,0 +1,5 @@ |
|||
import * as helpers from './helpers.js'; |
|||
|
|||
export default function bar ( a ) { |
|||
return helpers.typeof( a ); |
|||
} |
@ -0,0 +1,5 @@ |
|||
import * as helpers from './helpers.js'; |
|||
|
|||
export default function foo ( a ) { |
|||
return helpers.typeof( a ); |
|||
} |
@ -0,0 +1,5 @@ |
|||
var _typeof = function ( thing ) { |
|||
return typeof thing; |
|||
}; |
|||
|
|||
export { _typeof as typeof }; |
@ -0,0 +1,8 @@ |
|||
import * as helpers from './helpers.js'; |
|||
import foo from './foo.js'; |
|||
import bar from './bar.js'; |
|||
|
|||
assert.equal( helpers.typeof( foo ), 'function' ); |
|||
assert.equal( helpers.typeof( bar ), 'function' ); |
|||
assert.equal( foo( 1 ), 'number' ); |
|||
assert.equal( bar( 2 ), 'number' ); |
Loading…
Reference in new issue