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.

12 lines
439 B

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')), '' );
}
};