diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/jquery.avatar.js | 2 | ||||
-rw-r--r-- | core/js/tests/specs/jquery.avatarSpec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index 5813a80646f..c8ac70ac692 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -113,7 +113,7 @@ $div.imageplaceholder(user, result.data.displayname); } else { // User does not exist - $div.imageplaceholder(user, '?'); + $div.imageplaceholder('?'); $div.css('background-color', '#b9b9b9'); } } else { diff --git a/core/js/tests/specs/jquery.avatarSpec.js b/core/js/tests/specs/jquery.avatarSpec.js index 87767c8bc8f..d7305736690 100644 --- a/core/js/tests/specs/jquery.avatarSpec.js +++ b/core/js/tests/specs/jquery.avatarSpec.js @@ -99,7 +99,7 @@ describe('jquery.avatar tests', function() { }) ); - expect($div.imageplaceholder).toHaveBeenCalledWith('foo', '?'); + expect($div.imageplaceholder).toHaveBeenCalledWith('?'); expect($div.css).toHaveBeenCalledWith('background-color', '#b9b9b9'); }); |