Skip to content

Commit 9e9c725

Browse files
committed
Don't pass props to divs to avoid unknown props errors.
1 parent f0df2d9 commit 9e9c725

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/components/Provider.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('React', () => {
147147
})
148148
class ChildContainer extends Component {
149149
render() {
150-
return <div {...this.props} />
150+
return <div />
151151
}
152152
}
153153

test/components/connect.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('React', () => {
1111
describe('connect', () => {
1212
class Passthrough extends Component {
1313
render() {
14-
return <div {...this.props} />
14+
return <div />
1515
}
1616
}
1717

@@ -1908,7 +1908,7 @@ describe('React', () => {
19081908
updatedCount++
19091909
}
19101910
render() {
1911-
return <div {...this.props} />
1911+
return <div />
19121912
}
19131913
}
19141914

0 commit comments

Comments
 (0)