Update tests and changelog

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2022-01-07 18:21:33 +01:00
parent d8faf3e342
commit 8705c4abd1
No known key found for this signature in database
GPG key ID: DB99ADDDC5C0AF82
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,13 @@
# Release Notes # Release Notes
## UNRELEASED
### Bugfixes
- Fix error that Libravatar user avatars were not shown when using OAuth2 login
### Enhancements
- Libravatar avatars render as ident-icons when no avatar image was uploaded to Libravatar or Gravatar
## <i class="fa fa-tag"></i> 1.9.2 <i class="fa fa-calendar-o"></i> 2021-12-03 ## <i class="fa fa-tag"></i> 1.9.2 <i class="fa fa-calendar-o"></i> 2021-12-03
### Bugfixes ### Bugfixes

View file

@ -19,8 +19,8 @@ describe('generateAvatarURL() gravatar enabled', function () {
}) })
it('should return correct urls', function () { it('should return correct urls', function () {
assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?s=400') assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?default=identicon&s=400')
assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?s=96') assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?default=identicon&s=96')
}) })
it('should return correct urls for names with spaces', function () { it('should return correct urls for names with spaces', function () {