mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-30 06:45:47 -04:00
Add a test for gravatar urls
Signed-off-by: Daan Sprenkels <hello@dsprenkels.com>
This commit is contained in:
parent
f9cc2ff0ef
commit
318a37d41c
2 changed files with 13 additions and 1 deletions
11
test/letter-avatars.js
Normal file
11
test/letter-avatars.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict'
|
||||
|
||||
const assert = require('assert');
|
||||
const avatars = require('../lib/letter-avatars')
|
||||
|
||||
describe('generateAvatarURL()', function() {
|
||||
it('should return correct urls', function() {
|
||||
assert.equal(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=400');
|
||||
assert.equal(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=96');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue