mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
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:
parent
f9e7bae91a
commit
175c080019
|
@ -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' );
|
||||
} );
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue