Skip to content

Commit

Permalink
update dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Feb 16, 2020
1 parent 74aa672 commit 2605ec1
Show file tree
Hide file tree
Showing 3 changed files with 1,342 additions and 1,386 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"coveralls": "^3.0.3",
"eslint": "^6.6.0",
"eslint-config-react-app": "^5.1.0",
"eslint-plugin-flowtype": "3.13.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-import": "2.20.0",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.16.0",
"eslint-plugin-react": "7.18.0",
"eslint-plugin-react-hooks": "^1.6.1",
"prettier": "^1.16.4"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/mobx-react-component/test/mobxObserver.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,12 @@ it("should hoist known statics only", () => {
const wrapped = mobxObserver(MyHipsterComponent)
const wrappedMemo = React.memo(wrapped)
expect(wrapped.displayName).toBe("MyHipsterComponent")
expect((wrapped as any).randomStaticThing).toEqual(3)
expect((wrapped as any).defaultProps).toEqual({ x: 3 })
expect((wrapped as any).propTypes).toEqual({ x: isNumber }) // eslint-disable-line react/forbid-foreign-prop-types
expect(wrapped.randomStaticThing).toEqual(3)
expect(wrapped.defaultProps).toEqual({ x: 3 })
expect(wrapped.propTypes).toEqual({ x: isNumber }) // eslint-disable-line react/forbid-foreign-prop-types
expect((wrappedMemo as any).type).toBeInstanceOf(Function) // And not "Nope!"; this is the wrapped component, the property is introduced by memo
expect((wrappedMemo as any).compare).toBe(null) // another memo field
expect((wrapped as any).render).toBe(undefined)
expect(wrapped.render).toBe(undefined)
})

it("should have the correct displayName", () => {
Expand Down

0 comments on commit 2605ec1

Please sign in to comment.