forked from eriknakata/advcash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validationSendMoneyToEcurrency method
- Loading branch information
Erik Nakata
authored and
Erik Nakata
committed
May 8, 2017
1 parent
94fc7bc
commit fe90c55
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import advcash from '../src/index' | ||
import chai from 'chai' | ||
import chaiAsPromised from 'chai-as-promised' | ||
|
||
const expect = chai.expect | ||
const password = process.env.ADVCASH_PASSWORD | ||
const accountEmail = process.env.ADVCASH_ACCOUNT_EMAIL | ||
const apiName = process.env.ADVCASH_API_NAME | ||
const advcashSoapUrl = process.env.ADVCASH_SOAP_URL | ||
const address = process.env.ECOIN_ADDRESS | ||
|
||
chai.use(chaiAsPromised) | ||
|
||
describe('validation Send Money To Ecurrency', () => { | ||
it('Should return a null object', async () => { | ||
const client = await advcash({ password, apiName, accountEmail }) | ||
|
||
const promise = client.validationSendMoneyToEcurrency({ | ||
amount: 1.00, | ||
currency: "USD", | ||
ecurrency: "ECOIN", | ||
receiver: address, | ||
note: "testing", | ||
savePaymentTemplate: false | ||
}) | ||
|
||
return Promise.all([ | ||
expect(promise).to.eventually.equal(null) | ||
]) | ||
}) | ||
}) |