Skip to content

Commit

Permalink
use react-broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
lipp committed Oct 26, 2016
1 parent f09e070 commit 8eed446
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion components/navigation/test/test.js
Expand Up @@ -2,10 +2,16 @@

import assert from 'assert'
import React from 'react'
import {LocationBroadcast} from 'react-router/locationBroadcast'
import {Broadcast} from 'react-broadcast'
import {Navigation} from '../'
import {mount, shallow} from 'enzyme'

const LocationBroadcast = ({value, children}) => (
<Broadcast channel='location' value={value}>
{children}
</Broadcast>
)

describe('Navigation', () => {
it('should work', () => {
const wrapper = shallow(<Navigation links={[]} />)
Expand Down
8 changes: 7 additions & 1 deletion components/tabs/test/test.js
Expand Up @@ -2,10 +2,16 @@

import assert from 'assert'
import React from 'react'
import {LocationBroadcast} from 'react-router/locationBroadcast'
import {Broadcast} from 'react-broadcast'
import Tabs from '../'
import {mount} from 'enzyme'

const LocationBroadcast = ({value, children}) => (
<Broadcast channel='location' value={value}>
{children}
</Broadcast>
)

/**
* Create parent component and include button.
*/
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -69,6 +69,7 @@
"node-sass": "^3.6.0",
"react": "^15.3.0",
"react-addons-test-utils": "^15.3.0",
"react-broadcast": "^0.1.2",
"react-dom": "^15.3.0",
"react-router": "^4.0.0-alpha.3",
"react-transform-hmr": "^1.0.4",
Expand Down

0 comments on commit 8eed446

Please sign in to comment.