fix(core): update

This commit is contained in:
2020-08-23 13:33:19 +00:00
parent 93a7a4b236
commit 49c3d5df5c
7 changed files with 82 additions and 30 deletions

View File

@ -3,6 +3,7 @@ import * as paypal from '../ts/index';
import { Qenv } from '@pushrocks/qenv';
const testQenv = new Qenv('./', './.nogit/');
import * as smarttime from '@pushrocks/smarttime';
let testPayPalInstance: paypal.PayPal;
@ -15,7 +16,8 @@ tap.test('should create a valid paypal instance', async () => {
});
tap.test('should get an access token', async () => {
await testPayPalInstance.request();
const transactions = await paypal.PayPalTransaction.getTransactionFor30days(testPayPalInstance, smarttime.ExtendedDate.fromHyphedDate('2020-05-01').getTime());
console.log(transactions);
});
tap.start();