Skip to content

Commit

Permalink
Merge pull request #29 from debaraj-barua/fix/mockWithLDConsumer
Browse files Browse the repository at this point in the history
fix: mockWithLDConsumer should not return null
  • Loading branch information
yusinto authored May 27, 2022
2 parents f4300bc + e9cc53a commit 806bd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const ldClientMock = {
mockAsyncWithLDProvider.mockImplementation(() => Promise.resolve((props: any) => props.children))
mockLDProvider.mockImplementation((children: any) => children)
mockUseLDClient.mockImplementation(() => ldClientMock)
mockWithLDConsumer.mockImplementation(() => () => null)
mockWithLDConsumer.mockImplementation(() => (children: any) => children)
mockWithLDProvider.mockImplementation(() => (children: any) => children)

export const mockFlags = (flags: LDFlagSet) => {
Expand Down

0 comments on commit 806bd8a

Please sign in to comment.