Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
fix: write shields in one line
Browse files Browse the repository at this point in the history
When there is a new line after each shield, they are rendered in different paragraphs.
  • Loading branch information
zkochan committed May 2, 2016
1 parent 5beec63 commit 4217fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/create-shields-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = opts => {
return shieldProps
})
.map(renderShield)
.join('\n')
.join(' ')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/create-shields-renderer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('createShieldsRenderer', () => {
expect(shields.plastic('travis', 'npm')).to.eq([
'[![Build status for master](https://img.shields.io/travis/zkochan/mos/master.svg?style=plastic)](https://travis-ci.org/zkochan/mos)',
'[![NPM version](https://img.shields.io/npm/v/mos.svg?style=plastic)](https://www.npmjs.com/package/mos)',
].join('\n'))
].join(' '))
})

it('should throw exception if shield not supported', () => {
Expand Down

0 comments on commit 4217fe9

Please sign in to comment.