mirror of https://github.com/lukechilds/rollup.git
4 changed files with 20 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
var assert = require( 'assert' ); |
|||
var path = require( 'path' ); |
|||
|
|||
module.exports = { |
|||
error: function ( err ) { |
|||
assert.equal( path.normalize( err.file ), path.resolve( __dirname, 'empty.js' ) ); |
|||
assert.ok( /Export 'foo' is not defined by/.test( err.message ) ); |
|||
} |
|||
}; |
@ -0,0 +1,3 @@ |
|||
import * as mod from './empty.js'; |
|||
|
|||
mod.foo(); |
Loading…
Reference in new issue