From 9d82568f41ae873d01e40b6f359a627ece5cf76f Mon Sep 17 00:00:00 2001
From: Angel Aviel Domaoan <13580338+tenshiAMD@users.noreply.github.com>
Date: Sat, 24 Sep 2022 00:55:19 +0800
Subject: [PATCH] fix: add alt value for contributor image (#334)
---
src/generate/__tests__/format-contributor.js | 10 +++++-----
src/generate/format-contributor.js | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/generate/__tests__/format-contributor.js b/src/generate/__tests__/format-contributor.js
index bb3451e..9dd4b63 100644
--- a/src/generate/__tests__/format-contributor.js
+++ b/src/generate/__tests__/format-contributor.js
@@ -20,7 +20,7 @@ test('format a simple contributor', () => {
const {options} = fixtures()
const expected =
- '
Kent C. Dodds
👀'
+ '
Kent C. Dodds
👀'
expect(formatContributor(options, contributor)).toBe(expected)
})
@@ -30,7 +30,7 @@ test('format contributor with complex contribution types', () => {
const {options} = fixtures()
const expected =
- '
Kent C. Dodds
📖 👀 💬'
+ '
Kent C. Dodds
📖 👀 💬'
expect(formatContributor(options, contributor)).toBe(expected)
})
@@ -53,7 +53,7 @@ test('default image size to 100', () => {
delete options.imageSize
const expected =
- '
Kent C. Dodds
👀'
+ '
Kent C. Dodds
👀'
expect(formatContributor(options, contributor)).toBe(expected)
})
@@ -63,7 +63,7 @@ test('format contributor with pipes in their name', () => {
const {options} = fixtures()
const expected =
- '
Who | Needs | Pipes?
📖'
+ '
Who | Needs | Pipes?
📖'
expect(formatContributor(options, contributor)).toBe(expected)
})
@@ -73,7 +73,7 @@ test('format contributor with no GitHub account', () => {
const {options} = fixtures()
const expected =
- '
No Github Account
🌍'
+ '
No Github Account
🌍'
expect(formatContributor(options, contributor)).toBe(expected)
})
diff --git a/src/generate/format-contributor.js b/src/generate/format-contributor.js
index 048d63d..7966a93 100644
--- a/src/generate/format-contributor.js
+++ b/src/generate/format-contributor.js
@@ -2,7 +2,7 @@ const _ = require('lodash/fp')
const formatContributionType = require('./format-contribution-type')
const avatarTemplate = _.template(
- '',
+ '',
)
const avatarBlockTemplate = _.template(
'<%= avatar %>
<%= name %>',