change snake_case to camelCase in responses from api.submit and api.getServerInfo and add schema for it

This commit is contained in:
Ivan Tivonenko
2015-07-30 02:24:36 +03:00
parent c6f450842e
commit 03640efef5
9 changed files with 109 additions and 23 deletions

View File

@@ -162,7 +162,7 @@ describe('RippleAPI', function() {
it('submit', function(done) {
this.api.submit(responses.sign.signedTransaction,
_.partial(checkResult, responses.submit, null, done));
_.partial(checkResult, responses.submit, 'submit', done));
});
it('getBalances', function(done) {
@@ -478,7 +478,7 @@ describe('RippleAPI', function() {
it('getServerInfo', function(done) {
this.api.getServerInfo(
_.partial(checkResult, responses.getServerInfo, null, done));
_.partial(checkResult, responses.getServerInfo, 'getServerInfo', done));
});
it('getServerInfo - error', function(done) {