[FEATURE] authinfo module

This commit is contained in:
Matthew Fettig
2014-05-19 16:38:51 -07:00
parent 7fe530e82c
commit 7ea1ba168d
2 changed files with 46 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
var assert = require('assert');
var RippleTxt = require('../src/js/ripple/rippletxt');
var AuthInfo = require('../src/js/ripple/authinfo');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; //must be set for self signed certs
describe('Vault Client', function() {
@@ -15,4 +17,16 @@ describe('Vault Client', function() {
});
});
});
describe('AuthInfo', function() {
var auth = new AuthInfo();
it ('should', function(done){
auth.get("staging.ripple.com", "testUser", function(err, resp){
assert.ifError(err);
assert.equal(typeof resp, 'object');
done();
});
});
});
});