Browse Source

update tests

better-aggressive
Rich Harris 9 years ago
parent
commit
c65034f0fd
  1. 20
      test/test.js

20
test/test.js

@ -61,10 +61,12 @@ describe( 'rollup', function () {
it( 'fails without options or options.dest', function () {
return rollup.rollup({
entry: 'x',
resolveId: function () { return 'test'; },
load: function () {
return '// empty';
}
plugins: [{
resolveId: function () { return 'test'; },
load: function () {
return '// empty';
}
}]
}).then( function ( bundle ) {
assert.throws( function () {
bundle.write();
@ -79,10 +81,12 @@ describe( 'rollup', function () {
it( 'expects options.moduleName for IIFE and UMD bundles', function () {
return rollup.rollup({
entry: 'x',
resolveId: function () { return 'test'; },
load: function () {
return 'export var foo = 42;';
}
plugins: [{
resolveId: function () { return 'test'; },
load: function () {
return 'export var foo = 42;';
}
}]
}).then( function ( bundle ) {
assert.throws( function () {
bundle.generate({

Loading…
Cancel
Save