How to test React HOC function that is not passed into the wrapped component?

前端 未结 0 1816
情书的邮戳
情书的邮戳 2021-02-06 04:48

I have a HOC like so and I want to test the getStuff2 function:

function withHoc(aComponent) {
  class hocClass extends React.Component {

    getStu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题