Browse Source

Fix test for windows

better-aggressive
Luke Page 9 years ago
parent
commit
68d87ee213
  1. 7
      test/function/has-modules-array/_config.js

7
test/function/has-modules-array/_config.js

@ -5,9 +5,8 @@ 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' ) }
]);
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')), '' );
}
};

Loading…
Cancel
Save