From 175c080019eaae57043fb7c742c419f78a9a61be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Mon, 8 Dec 2014 21:07:41 +0000 Subject: [PATCH] Fix failing test in master String.replace interprets a plain string as an exact text to match against, but String.match interprets it as a regexp. Javascript is fun. Change-Id: I93ac31079f1f87dffdf0d5e02df2fa38ae79a6cc --- tests/qunit/mmv/mmv.EmbedFileFormatter.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qunit/mmv/mmv.EmbedFileFormatter.test.js b/tests/qunit/mmv/mmv.EmbedFileFormatter.test.js index b7875a0f8..54c7c6968 100644 --- a/tests/qunit/mmv/mmv.EmbedFileFormatter.test.js +++ b/tests/qunit/mmv/mmv.EmbedFileFormatter.test.js @@ -49,7 +49,7 @@ siteLink = formatter.getSiteLink( info ); assert.ok( siteLink.match( 'Wikipedia' ), 'Site name is present in site link' ); - assert.ok( siteLink.match( siteUrl ), 'Site URL is present in site link' ); + assert.ok( siteLink.indexOf( siteUrl ) !== -1, 'Site URL is present in site link' ); } );