diff --git a/lib/generate/format-contributor.js b/lib/generate/format-contributor.js index 24f53cb..6e2da82 100644 --- a/lib/generate/format-contributor.js +++ b/lib/generate/format-contributor.js @@ -4,7 +4,7 @@ var _ = require('lodash/fp'); var formatContributionType = require('./format-contribution-type'); var avatarTemplate = _.template(''); -var avatarBlockTemplate = _.template('[<%= avatar %>
<%= name %>](<%= contributor.profile %>)'); +var avatarBlockTemplate = _.template('[<%= avatar %>
<%= name %>](<%= contributor.profile %>)'); var contributorTemplate = _.template('<%= avatarBlock %>
<%= contributions %>'); var defaultImageSize = 100; diff --git a/lib/generate/format-contributor.test.js b/lib/generate/format-contributor.test.js index 3a8c303..a52eb76 100644 --- a/lib/generate/format-contributor.test.js +++ b/lib/generate/format-contributor.test.js @@ -16,7 +16,7 @@ test('should format a simple contributor', t => { const contributor = _.assign(contributors.kentcdodds, {contributions: ['review']}); const {options} = fixtures(); - const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[👀](#review-kentcdodds "Reviewed Pull Requests")'; + const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[👀](#review-kentcdodds "Reviewed Pull Requests")'; t.is(formatContributor(options, contributor), expected); }); @@ -25,7 +25,7 @@ test('should format contributor with complex contribution types', t => { const contributor = contributors.kentcdodds; const {options} = fixtures(); - const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=kentcdodds "Documentation") [👀](#review-kentcdodds "Reviewed Pull Requests") [💬](#question-kentcdodds "Answering Questions")'; + const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=kentcdodds "Documentation") [👀](#review-kentcdodds "Reviewed Pull Requests") [💬](#question-kentcdodds "Answering Questions")'; t.is(formatContributor(options, contributor), expected); }); @@ -45,7 +45,7 @@ test('should default image size to 100', t => { const {options} = fixtures(); delete options.imageSize; - const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[👀](#review-kentcdodds "Reviewed Pull Requests")'; + const expected = '[
Kent C. Dodds](http://kentcdodds.com)
[👀](#review-kentcdodds "Reviewed Pull Requests")'; t.is(formatContributor(options, contributor), expected); }); @@ -54,7 +54,7 @@ test('should format contributor with pipes in their name', t => { const contributor = contributors.pipey; const {options} = fixtures(); - const expected = '[
Who | Needs | Pipes?](http://github.com/chrisinajar)
[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=pipey "Documentation")'; + const expected = '[
Who | Needs | Pipes?](http://github.com/chrisinajar)
[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=pipey "Documentation")'; t.is(formatContributor(options, contributor), expected); });