-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from kyan/take_a_shot_at_some_specs
Working up to that 100% spec coverage
- Loading branch information
Showing
44 changed files
with
1,589 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
## Kyan Jukebox Client | ||
|
||
### Up and running | ||
|
||
Run `yarn install` | ||
|
||
### Specs | ||
|
||
To run the specs `yarn test` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import React from 'react' | ||
import { Provider } from 'react-redux' | ||
import { createStore, applyMiddleware } from 'redux' | ||
import jukeboxMiddleware from './containers/jukebox-middleware' | ||
import jukeboxApp from './reducers' | ||
import { Container } from 'semantic-ui-react' | ||
import Dashboard from './containers/dashboard' | ||
|
||
const store = createStore( | ||
jukeboxApp, | ||
applyMiddleware(jukeboxMiddleware) | ||
) | ||
|
||
const App = () => ( | ||
<Container fluid> | ||
<Dashboard/> | ||
</Container> | ||
<Provider store={store}> | ||
<Container fluid> | ||
<Dashboard/> | ||
</Container> | ||
</Provider> | ||
) | ||
|
||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App renders without crashing 1`] = ` | ||
<Provider | ||
store={ | ||
Object { | ||
"dispatch": [Function], | ||
"getState": [Function], | ||
"replaceReducer": [Function], | ||
"subscribe": [Function], | ||
Symbol(observable): [Function], | ||
} | ||
} | ||
> | ||
<Container | ||
fluid={true} | ||
> | ||
<Connect(DragDropContext(Dashboard)) /> | ||
</Container> | ||
</Provider> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.