Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@friggframework/api-module-airwallex

Package Overview
Dependencies
Maintainers
3
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@friggframework/api-module-airwallex - npm Package Compare versions

Comparing version 0.8.25-canary.143.04e6974.0 to 0.8.25-canary.155.274587c.0

manager.test.js

12

package.json
{
"name": "@friggframework/api-module-airwallex",
"version": "0.8.25-canary.143.04e6974.0",
"version": "0.8.25-canary.155.274587c.0",
"prettier": "@friggframework/prettier-config",

@@ -14,4 +14,4 @@ "description": "",

"devDependencies": {
"@friggframework/eslint-config": "1.0.9-canary.143.04e6974.0",
"@friggframework/test-environment": "1.1.7-canary.143.04e6974.0",
"@friggframework/eslint-config": "^1.0.8",
"@friggframework/test-environment": "^1.1.6",
"eslint": "^8.22.0",

@@ -23,6 +23,6 @@ "jest": "^28.1.3",

"dependencies": {
"@friggframework/assertions": "1.0.9-canary.143.04e6974.0",
"@friggframework/module-plugin": "1.0.26-canary.143.04e6974.0"
"@friggframework/assertions": "^1.0.8",
"@friggframework/module-plugin": "1.0.26-canary.155.274587c.0"
},
"gitHead": "04e6974da8d19972f8b4124d2bcb0f4f8e720bca"
"gitHead": "274587c36a1f61ec95ab74e54b22e8ad230d3eeb"
}
const chai = require('chai');
const should = chai.should();
const Authenticator = require('@friggframework/test-environment/Authenticator');
const Authenticator = require('../../../../test/utils/Authenticator');
const { Api } = require('../api');
describe('Airwallex API class', () => {
let api;
beforeAll(async () => {
api = new Api({
api_key: process.env.AIRWALLEX_API_KEY,
client_id: process.env.AIRWALLEX_CLIENT_ID,
});
await api.getTokenFromApiKey();
const TestUtils = require('../../../../test/utils/TestUtils');
describe('Airwallex API class', async () => {
const api = new Api();
before(async () => {
const url = api.authorizationUri;
const response = await Authenticator.oauth2(url);
const baseArr = response.base.split('/');
response.entityType = baseArr[baseArr.length - 1];
delete response.base;
const token = await api.getTokenFromCode(response.data.code);
});
describe('Get Account Info', () => {
it.skip('should get Account info', async () => {
describe('Get Account Info', async () => {
it('should get Account info', async () => {
const response = await api.getAccount();

@@ -25,4 +29,4 @@ response.should.have.property('id');

describe('Transactions', () => {
it.skip('should get all transactions', async () => {
describe('Transactions', async () => {
it('should get all transactions', async () => {
const response = await api.getTransactions();

@@ -34,11 +38,11 @@ response.should.have.property('items');

describe('Payments', () => {});
describe('Payments', async () => {});
describe('Charges', () => {});
describe('Charges', async () => {});
describe('Balance', () => {});
describe('Balance', async () => {});
describe('Card', () => {});
describe('Card', async () => {});
describe('Customer', () => {});
describe('Customer', async () => {});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc