Version: 0.13.0

cnd/__mocks__/cnd

Index

Variables

Variables

Const Cnd

Cnd: Mock‹any, any› = jest.fn().mockImplementation(() => { return { postSwap: mockPostSwap, fetch: mockFetch }; })

Defined in cnd/mocks/cnd.ts:14


Const mockFetch

mockFetch: Mock‹any, any› = jest.fn().mockImplementation(async () => { return Promise.resolve({ data: { properties: { id: "123456" }, links: [{ rel: "self", href: "/mock/self/href" }] } }); })

Defined in cnd/mocks/cnd.ts:5


Const mockPostSwap

mockPostSwap: Mock‹any, any› = jest.fn().mockImplementation(async () => { return Promise.resolve("/mock/swap/location"); })

Defined in cnd/mocks/cnd.ts:1