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

fix: unresolved promise warning in authorization model #62

Merged
merged 1 commit into from
Mar 16, 2021
Merged

fix: unresolved promise warning in authorization model #62

merged 1 commit into from
Mar 16, 2021

Conversation

eoln
Copy link
Contributor

@eoln eoln commented Mar 16, 2021

No description provided.

@eoln eoln requested a review from sridharvoruganti March 16, 2021 09:56
mocked(modelConfig.requests.postAuthorizations).mockImplementationOnce(
() => {
throw error
}
)
const model = await create({ ...data, currentState: 'errored' }, modelConfig)
const model = await create({ ...data, currentState: 'start' }, modelConfig)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sridharvoruganti currentState should be 'start' because we want to test exception thrown from postAuthorizations

@eoln eoln merged commit 65209e8 into mojaloop:master Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants