-
Notifications
You must be signed in to change notification settings - Fork 6
add /v2/balance/ endpoint; fix tests #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
base: ffeat/bigint
Are you sure you want to change the base?
Conversation
| // * @param {Callback} cb | ||
| // */ | ||
| getBalance(opts, cb) { | ||
| getBalance(opts, cb, baseUrl) { |
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.
by default baseUrl should be the current URL (/v2/balance/ ? )
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.
ok
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.
Cool
b3bf013 to
00f595d
Compare
| err => { | ||
| should.not.exist(err,err); | ||
| balance.should.equal(1e8); | ||
| balance.toString().should.equal("100000000"); |
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.
the "toString()" here kind of defeat the purpose of the test. Maybe you can check that typeof balance is number?
00f595d to
c5f40b3
Compare
No description provided.