Browse Source

fix test in windows (hopefully)

better-aggressive
Rich-Harris 9 years ago
parent
commit
b754c0c9b4
  1. 2
      test/function/warn-on-eval/_config.js

2
test/function/warn-on-eval/_config.js

@ -8,7 +8,7 @@ module.exports = {
options: {
onwarn: function ( message ) {
warned = true;
assert.equal( message, 'Use of `eval` (in ' + path.resolve( __dirname, 'main.js' ) + ') is discouraged, as it may cause issues with minification. See https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval for more details' );
assert.ok( /Use of `eval` \(in .+?main\.js\) is discouraged, as it may cause issues with minification\. See https:\/\/github.com\/rollup\/rollup\/wiki\/Troubleshooting#avoiding-eval for more details/.test( message ) );
}
},
exports: function () {

Loading…
Cancel
Save