Skip to content

Commit

Permalink
Throw for an unknown test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 4, 2017
1 parent 271d5b8 commit 8834940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 2 additions & 4 deletions packages/react-scripts/fixtures/kitchensink/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ class App extends React.Component {
case 'unknown-ext-inclusion':
require.ensure([], () => this.setFeature(require('./features/webpack/UnknownExtInclusion').default));
break;
default:
this.setFeature(null);
break;
default: throw new Error('Unknown feature!');
}
}

Expand All @@ -129,7 +127,7 @@ class App extends React.Component {
if (feature !== null) {
return <BuiltEmitter feature={feature} />;
}
return null
return null;
}
}

Expand Down
8 changes: 0 additions & 8 deletions packages/react-scripts/fixtures/kitchensink/src/App.test.js

This file was deleted.

0 comments on commit 8834940

Please sign in to comment.