Previously you were not allowed to set a default implementation with a mock return function without a calledWith: when(fn).mockReturnValue(true) fn() ...
確定! 回上一頁