mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
439 B
13 lines
439 B
10 years ago
|
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.equal( bundle.modules.length, 2 );
|
||
|
assert.equal( path.relative(bundle.modules[0].id, path.resolve(__dirname, 'foo.js')), '' );
|
||
|
assert.equal( path.relative(bundle.modules[1].id, path.resolve(__dirname, 'main.js')), '' );
|
||
|
}
|
||
|
};
|