mirror of https://github.com/lukechilds/rollup.git
Oskar Segersvärd
9 years ago
2 changed files with 4 additions and 7 deletions
@ -1,12 +1,9 @@ |
|||
var assert = require( 'assert' ); |
|||
var path = require( 'path' ); |
|||
|
|||
module.exports = { |
|||
solo: true, |
|||
|
|||
error: function ( err ) { |
|||
console.log( err.message ); |
|||
// assert.equal( path.normalize(err.file), path.resolve( __dirname, 'main.js' ) );
|
|||
// assert.deepEqual( err.loc, { line: 8, column: 0 });
|
|||
assert.ok( /Export "foo" is not defined by/.test( err.message ) ); |
|||
assert.equal( path.normalize( err.file ), path.resolve( __dirname, 'empty.js' ) ); |
|||
assert.ok( /Export 'foo' is not defined by/.test( err.message ) ); |
|||
} |
|||
}; |
|||
|
Loading…
Reference in new issue