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.

25 lines
569 B

var assert = require( 'assert' );
module.exports = {
description: 'throws error only with first plugin transformBundle',
options: {
plugins: [
{
name: 'plugin1',
transformBundle: function () {
throw Error('Something happend 1');
}
},
{
name: 'plugin2',
transformBundle: function () {
throw Error('Something happend 2');
}
}
]
},
generateError: function ( err ) {
assert.equal( err.plugin, 'plugin1' );
assert.equal( err.message, 'Error transforming bundle with \'plugin1\' plugin: Something happend 1' );
}
};