Skip to content

Conversation

@chrismin
Copy link
Collaborator

No description provided.

@chrismin chrismin requested review from graemecode and saturnial June 13, 2018 23:57
await debtOrder.fill(fillParameters);
expect(spy).toBeCalled();

spy.mockReset();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should move to afterEach

const spy = jest.spyOn(dharma.order, "fillAsync");
// jest#spyOn seems to have issues with mocking async functions by default
// tslint:disable-next-line
spy.mockImplementation(async () => {});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to mock the implementation?

description: "when the debt order is open",
creditorAddress,
debtOrderParams,
setUpDebtOrder: (debtOrder: DebtOrder) => {},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block is empty

describe("#create", async () => {
await testCreate(dharma, DEBT_ORDER_PARAMS_ONE);
});
// describe("#create", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncomment tests!

@chrismin chrismin added the WIP label Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants