mirror of https://github.com/lukechilds/rollup.git
Oskar Segersvärd
9 years ago
6 changed files with 37 additions and 12 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'marking an imported, but unexported, identifier should throw', |
||||
|
|
||||
|
error: function ( err ) { |
||||
|
assert.equal( err.message.slice( 0, 50 ), 'The imported name "default" is never exported by "' ); |
||||
|
assert.equal( err.message.slice( -10 ), 'empty.js".' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import a from './empty.js'; |
||||
|
|
||||
|
a(); |
Loading…
Reference in new issue