mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
5 changed files with 21 additions and 3 deletions
@ -0,0 +1,13 @@ |
|||
var path = require( 'path' ); |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'user-facing bundle has modules array', |
|||
bundle: function ( bundle ) { |
|||
assert.ok( bundle.modules ); |
|||
assert.deepEqual( bundle.modules, [ |
|||
{ id: path.resolve( __dirname, 'foo.js' ) }, |
|||
{ id: path.resolve( __dirname, 'main.js' ) } |
|||
]); |
|||
} |
|||
}; |
@ -0,0 +1 @@ |
|||
export default 42; |
@ -0,0 +1,2 @@ |
|||
import foo from './foo'; |
|||
assert.equal( foo, 42 ); |
Loading…
Reference in new issue