Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
feat(QA): fake trade status
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Dec 18, 2017
1 parent 35ab469 commit 4f140f5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/trade.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,9 @@ class Trade extends Exchange.Trade {
.then(this._delegate.save.bind(this._delegate));
}

// QA tool:
fakeAchSuccess () {
let options = { id: this.id };
return this._api.authPOST('testing/approvedeposit', options)
.then(this.set.bind(this))
.then(this._delegate.save.bind(this._delegate));
}

// QA tool:
fakeAchFail () {
let options = { id: this.id, status: 'rejected' };
// QA Tool
fakeStatus (status) {
let options = { id: this.id, status: status };
return this._api.authPOST('testing/changestatus', options)
.then(this.set.bind(this))
.then(this._delegate.save.bind(this._delegate));
Expand Down

0 comments on commit 4f140f5

Please sign in to comment.