|
@ -5,9 +5,8 @@ module.exports = { |
|
|
description: 'user-facing bundle has modules array', |
|
|
description: 'user-facing bundle has modules array', |
|
|
bundle: function ( bundle ) { |
|
|
bundle: function ( bundle ) { |
|
|
assert.ok( bundle.modules ); |
|
|
assert.ok( bundle.modules ); |
|
|
assert.deepEqual( bundle.modules, [ |
|
|
assert.equal( bundle.modules.length, 2 ); |
|
|
{ id: path.resolve( __dirname, 'foo.js' ) }, |
|
|
assert.equal( path.relative(bundle.modules[0].id, path.resolve(__dirname, 'foo.js')), '' ); |
|
|
{ id: path.resolve( __dirname, 'main.js' ) } |
|
|
assert.equal( path.relative(bundle.modules[1].id, path.resolve(__dirname, 'main.js')), '' ); |
|
|
]); |
|
|
|
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|