Skip to content

Commit

Permalink
Merge pull request #108 from shekenahglory/develop
Browse files Browse the repository at this point in the history
[FIX] vault client: rippleTxt test request diverted to offline mock
  • Loading branch information
wltsmrz committed Jun 23, 2014
2 parents f963d26 + 3ebcadf commit fd0dc3b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/vault-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ while(!sjcl.random.isReady()) {
}

var mockRippleTxt;
var mockRippleTxt2;
var mockAuthSign;
var mockRegister;
var mockBlob;
Expand All @@ -129,7 +130,14 @@ var mockProfile;
var mockDelete;

if (!online) {
mockRippleTxt = nock('https://' + exampleData.domain)
mockRippleTxt = nock('https://ripple.com')
.persist()
.get('/ripple.txt')
.reply(200, rippleTxtRes, {
'Content-Type': 'text/plain'
});

mockRippleTxt2 = nock('https://' + exampleData.domain)
.persist()
.get('/ripple.txt')
.reply(200, rippleTxtRes, {
Expand Down

0 comments on commit fd0dc3b

Please sign in to comment.