Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

158344830 test: filling DebtOrder #205

Open
wants to merge 5 commits into
base: simple-api
Choose a base branch
from
Open

Conversation

chrismin
Copy link
Collaborator

No description provided.

@chrismin chrismin requested review from saturnial and graemecode 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.

4 participants