[FIX] vault client: rippleTxt test request diverted to offline mock

This commit is contained in:
Matthew Fettig
2014-06-23 13:44:16 -07:00
parent f963d266a2
commit 3ebcadfad4

View File

@@ -117,6 +117,7 @@ while(!sjcl.random.isReady()) {
} }
var mockRippleTxt; var mockRippleTxt;
var mockRippleTxt2;
var mockAuthSign; var mockAuthSign;
var mockRegister; var mockRegister;
var mockBlob; var mockBlob;
@@ -129,7 +130,14 @@ var mockProfile;
var mockDelete; var mockDelete;
if (!online) { 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() .persist()
.get('/ripple.txt') .get('/ripple.txt')
.reply(200, rippleTxtRes, { .reply(200, rippleTxtRes, {