diff options
author | Christoph (Sheogorath) Kern | 2019-01-21 23:16:22 +0100 |
---|---|---|
committer | GitHub | 2019-01-21 23:16:22 +0100 |
commit | d69edd1defacb4f81936c7c428b71e43d1f1e22d (patch) | |
tree | c564c26d584c9b612160107003647b69aa810ec0 /test | |
parent | 3a23bd7c050abccc2560540e84d83cda5124e9cd (diff) | |
parent | bf229d91c62c147f8eee9f80bfff1f874da32b56 (diff) |
Merge pull request #1123 from SISheogorath/fix/lintingTests
Add linting for tests
Diffstat (limited to 'test')
-rw-r--r-- | test/letter-avatars.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/letter-avatars.js b/test/letter-avatars.js index 4948dec0..16197f52 100644 --- a/test/letter-avatars.js +++ b/test/letter-avatars.js @@ -1,11 +1,13 @@ +/* eslint-env node, mocha */ + 'use strict' -const assert = require('assert'); +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'); - }); -}); +describe('generateAvatarURL()', function () { + it('should return correct urls', function () { + assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=400') + assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=96') + }) +}) |