Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Fixed broken inject test
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Feb 11, 2019
1 parent 61ae046 commit 886cb96
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/inject.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,19 @@ describe("inject based context", () => {
const baseWarn = console.warn
console.warn = m => (msg = m)
const a = mobx.observable.box(3)
const C = observer(
["foo"],
createClass({
render() {
return (
<div>
context:
{this.props.foo}
</div>
)
}
})
const C = inject("foo")(
observer(
createClass({
render() {
return (
<div>
context:
{this.props.foo}
</div>
)
}
})
)
)
const B = observer(
createClass({
Expand Down

0 comments on commit 886cb96

Please sign in to comment.