-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: simple-api
Are you sure you want to change the base?
Conversation
await debtOrder.fill(fillParameters); | ||
expect(spy).toBeCalled(); | ||
|
||
spy.mockReset(); |
There was a problem hiding this comment.
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 () => {}); |
There was a problem hiding this comment.
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) => {}, |
There was a problem hiding this comment.
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 () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncomment tests!
No description provided.