Skip to content

Commit 15b07e5

Browse files
author
Matthias Rütten
committed
add test script
1 parent 3f08d23 commit 15b07e5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.9.1",
44
"description": "This app shows your merge requests grouped by projects and WIP status. It is accessible from the system tray.",
55
"main": "./dist/main.js",
6-
"engines": {
7-
"yarn": "1.19.1"
8-
},
96
"homepage": "https://github.com/codecentric/merge-request-notifier",
107
"author": {
118
"name": "Matthias Rütten",
@@ -24,8 +21,10 @@
2421
"start-main-dev": "webpack --config webpack.main.config.js && electron ./dist/main.js",
2522
"start": "cross-env START_HOT=1 yarn start-renderer-dev",
2623
"prestart": "yarn build",
24+
"test": "echo \"not yet implemented.\"",
2725
"lint": "tslint '{src,test,mocks}/**/*.{ts,tsx}' --project ./tsconfig.json",
2826
"package": "electron-builder --publish always",
27+
"package:only": "electron-builder --publish never",
2928
"postinstall": "electron-builder install-app-deps",
3029
"prettier:check": "prettier --check 'src/**/*.ts*'",
3130
"prettier:write": "prettier --write 'src/**/*.ts*'"

src/renderer/components/merge-requests/list/Stats.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export interface StatsProps {
1616
}
1717

1818
export const Stats: React.FunctionComponent<StatsProps> = ({ upVotes, downVotes, commentCount, pipelineStatus }) => {
19-
const statsToRender = [{ count: upVotes, Icon: ThumbUpIcon }, { count: downVotes, Icon: ThumbDownIcon }, { count: commentCount, Icon: CommentIcon }]
19+
const statsToRender = [
20+
{ count: upVotes, Icon: ThumbUpIcon },
21+
{ count: downVotes, Icon: ThumbDownIcon },
22+
{ count: commentCount, Icon: CommentIcon },
23+
]
2024
.filter(({ count }) => count > 0)
2125
.map(({ count, Icon }) => (
2226
<>

0 commit comments

Comments
 (0)