-
Notifications
You must be signed in to change notification settings - Fork 3
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
add session proxy calls and getters to worker-api #125
Conversation
expect(result).toBeDefined(); | ||
const info = result as AccountInfo; | ||
console.log("parsed: ", info.data.free); | ||
// we don't forward errors here. instead, failures are mapped to default, which is zero | ||
expect(info.data.free.toBigInt()).toEqual(BigInt(0)); |
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.
toBeDefined is used too often IMHO. It says almost nothing about success
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.
Yes, but I did this as I wanted to test it against a running setup that might return different results for sequential runs.
closes #124
TrustedCall
TrustedGetter
other functionality