Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(error-reporting): Removes NETWORK_IDLE from error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jan 4, 2018
1 parent 1ccb4a2 commit 42a0e3e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/store/effects/components/episode.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export default (store, action) => {
case 'END':
store.dispatch(actions.showReplayButton())
break
case 'NETWORK_IDLE':
case 'NETWORK_EMPTY':
case 'NETWORK_NO_SOURCE':
store.dispatch(actions.toggleInfo(false))
Expand Down
2 changes: 1 addition & 1 deletion src/store/effects/components/episode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ test(`componentsEffect: it shows correct ui components for END action`, t => {
})
})

const types = ['NETWORK_IDLE', 'NETWORK_EMPTY', 'NETWORK_NO_SOURCE']
const types = ['NETWORK_EMPTY', 'NETWORK_NO_SOURCE']

types.forEach(type => {
test(`componentsEffect: it shows correct ui components for ${type} action`, t => {
Expand Down
1 change: 0 additions & 1 deletion src/store/effects/components/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default (store, action) => {
store.dispatch(actions.toggleInfoPoster(true))
store.dispatch(actions.showPauseButton())
break
case 'NETWORK_IDLE':
case 'NETWORK_EMPTY':
case 'NETWORK_NO_SOURCE':
store.dispatch(actions.showRetryButton())
Expand Down
2 changes: 1 addition & 1 deletion src/store/effects/components/live.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ test(`componentsEffect: it shows the info section only when meta available on IN
})
})

const types = ['NETWORK_IDLE', 'NETWORK_EMPTY', 'NETWORK_NO_SOURCE']
const types = ['NETWORK_EMPTY', 'NETWORK_NO_SOURCE']

types.forEach(type => {
test(`componentsEffect: it shows correct ui components for ${type} action`, t => {
Expand Down
1 change: 0 additions & 1 deletion src/store/reducers/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const INITIAL = {

const error = (state = INITIAL, action) => {
switch (action.type) {
case 'NETWORK_IDLE':
case 'NETWORK_EMPTY':
case 'NETWORK_NO_SOURCE':
return {
Expand Down
2 changes: 1 addition & 1 deletion src/store/reducers/error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test(`error: it returns the initial state on default`, t => {
})
})

const types = ['NETWORK_IDLE', 'NETWORK_EMPTY', 'NETWORK_NO_SOURCE']
const types = ['NETWORK_EMPTY', 'NETWORK_NO_SOURCE']

types.forEach(type => {
test(`error: it sets the message and title on ${type}`, t => {
Expand Down

0 comments on commit 42a0e3e

Please sign in to comment.