diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aef163a..e1373cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,8 @@ name: Tests -on: push +on: + pull_request: + branches: + - main jobs: test: runs-on: ubuntu-latest @@ -15,6 +18,9 @@ jobs: restore-keys: v1/${{ runner.os }}/node-14/ - name: Install dependencies run: npm install + - name: Percy Variables + run: | + export PERCY_TOKEN=${{ secrets.PERCY_TOKEN }} - name: Run tests run: npm test env: diff --git a/js/TodoFooter.js b/js/TodoFooter.js index 12199a4..471cbcd 100644 --- a/js/TodoFooter.js +++ b/js/TodoFooter.js @@ -5,13 +5,7 @@ function pluralize(count, word) { return count === 1 ? word : word + 's'; } -export default function TodoFooter({ - activeCount, - completedCount, - showTodos, - onClearCompleted, - onShowTodos -}) { +export default function TodoFooter({ activeCount, completedCount, showTodos, onClearCompleted, onShowTodos }) { return (