Skip to content

Commit e43dd2e

Browse files
committed
Fix lint warnings and Match test
1 parent bb7d8ee commit e43dd2e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/Link.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { PropTypes } from 'react'
22
import { LocationSubscriber } from './locationEmission'
33
import {
4-
location as locationType,
54
routerContext as routerContextType
65
} from './PropTypes'
76

modules/__tests__/Match-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import expect from 'expect'
2-
import React, { PropTypes } from 'react'
2+
import React from 'react'
33
import Match from '../Match'
44
import { renderToString } from 'react-dom/server'
55
import { render } from 'react-dom'
@@ -293,7 +293,7 @@ describe('Match', () => {
293293
const contextLoc = { pathname: '/', state: { test: CONTEXT } }
294294
const propsLoc = { pathname: '/', state: { test: PROP } }
295295
const html = renderToString(
296-
<LocationEmitter value={location}>
296+
<LocationEmitter value={contextLoc}>
297297
<Match location={propsLoc} pattern="/" render={({ location }) => (
298298
<div>{location.state.test}</div>
299299
)}/>

0 commit comments

Comments
 (0)