mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:41:15 +08:00
correct tests and implemenation
This commit is contained in:
@ -130,7 +130,7 @@ test("avatarImg", function() {
|
||||
"it returns the avatar html");
|
||||
|
||||
equal(utils.avatarImg({avatarTemplate: avatarTemplate, size: 'tiny', title: 'evilest trout'}),
|
||||
"<img alt='avatar' width='20' height='20' src='/path/to/avatar/40.png' class='avatar' title='evilest trout'>",
|
||||
"<img alt='evilest trout' width='20' height='20' src='/path/to/avatar/40.png' class='avatar' title='evilest trout'>",
|
||||
"it adds a title if supplied");
|
||||
|
||||
equal(utils.avatarImg({avatarTemplate: avatarTemplate, size: 'tiny', extraClasses: 'evil fish'}),
|
||||
|
Reference in New Issue
Block a user