diff --git a/lib/team_info.js b/lib/team_info.js index d4568e21..47f667b2 100644 --- a/lib/team_info.js +++ b/lib/team_info.js @@ -9,7 +9,7 @@ function byLogin(a, b) { function getContact({ login, url, name, email }) { if (!name) return `* [@${login}](${url})`; - return `* [@${login}](${url}) - ${name}`; + return `* [@${login}](${url}) - ${name}${email ? ` <${email}>` : ''}`; } function key(org, team) { diff --git a/test/fixtures/ncu_team_sync_expected.md b/test/fixtures/ncu_team_sync_expected.md index 84a5dd6d..69750400 100644 --- a/test/fixtures/ncu_team_sync_expected.md +++ b/test/fixtures/ncu_team_sync_expected.md @@ -3,8 +3,8 @@ * [@Bar](https://github.com/Bar) - Bar Bar -* [@foo](https://github.com/foo) - Mr. foo -* [@quo](https://github.com/quo) - Ms. Quo +* [@foo](https://github.com/foo) - Mr. foo +* [@quo](https://github.com/quo) - Ms. Quo diff --git a/test/fixtures/ncu_team_sync_out.md b/test/fixtures/ncu_team_sync_out.md index 84a5dd6d..69750400 100644 --- a/test/fixtures/ncu_team_sync_out.md +++ b/test/fixtures/ncu_team_sync_out.md @@ -3,8 +3,8 @@ * [@Bar](https://github.com/Bar) - Bar Bar -* [@foo](https://github.com/foo) - Mr. foo -* [@quo](https://github.com/quo) - Ms. Quo +* [@foo](https://github.com/foo) - Mr. foo +* [@quo](https://github.com/quo) - Ms. Quo diff --git a/test/unit/team_info.test.js b/test/unit/team_info.test.js index 89e7e1f6..5f4b8a34 100644 --- a/test/unit/team_info.test.js +++ b/test/unit/team_info.test.js @@ -9,8 +9,8 @@ import { readJSON, readFile, path as getPath } from '../fixtures/index.js'; const collabList = `* [@Bar](https://github.com/Bar) - Bar Bar -* [@foo](https://github.com/foo) - Mr. foo -* [@quo](https://github.com/quo) - Ms. Quo`; +* [@foo](https://github.com/foo) - Mr. foo +* [@quo](https://github.com/quo) - Ms. Quo `; describe('TeamInfo', function() { let request;