fix(core): update

This commit is contained in:
2020-08-25 11:57:03 +00:00
parent 406178d6d0
commit 08c78bae05
5 changed files with 166 additions and 29 deletions

View File

@ -11,6 +11,7 @@ tap.test('should create a valid paypal instance', async () => {
testPayPalInstance = new paypal.PayPalAccount({
clientId: testQenv.getEnvVarOnDemand('PAYPAL_CLIENT_ID'),
clientSecret: testQenv.getEnvVarOnDemand('PAYPAL_CLIENT_SECRET'),
accountOwner: 'sample corp'
});
expect(testPayPalInstance).to.be.instanceOf(paypal.PayPalAccount);
});
@ -18,7 +19,7 @@ tap.test('should create a valid paypal instance', async () => {
tap.test('should get an access token', async () => {
const transactions = await testPayPalInstance.getTransactionsFromTo(
smarttime.ExtendedDate.fromHyphedDate('2020-01-01').getTime(),
smarttime.ExtendedDate.fromHyphedDate('2020-08-01').getTime(),
smarttime.ExtendedDate.fromHyphedDate('2020-08-01').getTime()
);
console.log(transactions);
});