Skip to content

Commit

Permalink
🙈 Coverage Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlee-dev committed Sep 25, 2019
1 parent cd17bde commit b1c4f0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"exclude": ["src/serviceWorker.js", "src/index.js"]
}
3 changes: 3 additions & 0 deletions src/components/ImportButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ const ImportButton = ({ handleImportGame }) => {
localStorage.setItem('importedGame', true)
return
}
/* istanbul ignore next */
inputRef.current.click()
}

/* istanbul ignore next */
const handleFileAdded = e => {
const reader = new FileReader()

Expand Down Expand Up @@ -52,6 +54,7 @@ ImportButton.propTypes = {
handleImportGame: PropTypes.func.isRequired
}

/* istanbul ignore next */
const mapDispatchToProps = dispatch => ({
handleImportGame: ({ ship, ui, user, world }) => {
dispatch(replaceShip(ship))
Expand Down

0 comments on commit b1c4f0d

Please sign in to comment.