diff options
author | Christoph (Sheogorath) Kern | 2019-01-05 14:08:23 +0100 |
---|---|---|
committer | GitHub | 2019-01-05 14:08:23 +0100 |
commit | 7a83fc0f14940ee5161ba1693d1bedc810b419c6 (patch) | |
tree | 4d2317c8038416c2032b0141849e4e23ba60edd5 /test | |
parent | dba9575c94743a4efd65ff3db0d8748161ca13f0 (diff) | |
parent | f7bc1e99c0a5431581dabfaad9939b40d42b2a94 (diff) |
Merge pull request #1110 from dsprenkels/issue_1106
Remove blueimp-md5 dependency
Diffstat (limited to '')
-rw-r--r-- | test/letter-avatars.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/letter-avatars.js b/test/letter-avatars.js new file mode 100644 index 00000000..4948dec0 --- /dev/null +++ b/test/letter-avatars.js @@ -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'); + }); +}); |