File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React , { PropTypes } from 'react'
2
2
import { LocationSubscriber } from './locationEmission'
3
3
import {
4
- location as locationType ,
5
4
routerContext as routerContextType
6
5
} from './PropTypes'
7
6
Original file line number Diff line number Diff line change 1
1
import expect from 'expect'
2
- import React , { PropTypes } from 'react'
2
+ import React from 'react'
3
3
import Match from '../Match'
4
4
import { renderToString } from 'react-dom/server'
5
5
import { render } from 'react-dom'
@@ -293,7 +293,7 @@ describe('Match', () => {
293
293
const contextLoc = { pathname : '/' , state : { test : CONTEXT } }
294
294
const propsLoc = { pathname : '/' , state : { test : PROP } }
295
295
const html = renderToString (
296
- < LocationEmitter value = { location } >
296
+ < LocationEmitter value = { contextLoc } >
297
297
< Match location = { propsLoc } pattern = "/" render = { ( { location } ) => (
298
298
< div > { location . state . test } </ div >
299
299
) } />
You can’t perform that action at this time.
0 commit comments