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
This commit is contained in:
Gergő Tisza 2014-12-08 21:07:41 +00:00
parent f9e7bae91a
commit 175c080019

View file

@ -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' );
} );