From b754c0c9b49f4c9ca1a9dcaf3a17c1aad6c4672a Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Fri, 30 Oct 2015 21:31:39 -0400 Subject: [PATCH] fix test in windows (hopefully) --- test/function/warn-on-eval/_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/function/warn-on-eval/_config.js b/test/function/warn-on-eval/_config.js index 2c4dae9..62a3ee4 100644 --- a/test/function/warn-on-eval/_config.js +++ b/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 () {