Skip to content

Conversation

@Dudleyneedham
Copy link
Member

Adding tests for the service endpoints

Comment on lines +53 to +58
if (result.asRejected) {
throw new Error(`Service removal failed: ${result.asRejected.error}`)
}
if (result.asConfirmed) {
console.log('Service removed successfully')
}
Copy link
Contributor

Choose a reason for hiding this comment

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

as above

Copy link
Member Author

Choose a reason for hiding this comment

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

I have updated this as per your comments.

However, I am getting this response.

Property 'isConfirmed' does not exist on type 'TransactionResult'. Did you mean 'asConfirmed'?ts(2551)

Copy link
Contributor

Choose a reason for hiding this comment

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

ah we may not have this, in which case it would just be result.status === "confirmed"

Co-authored-by: Raphael Flechtner <39338561+rflechtner@users.noreply.github.com>
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.

3 participants