Skip to content

Commit

Permalink
chore(): param prefixing for tests, chore(): skip currently non-funct…
Browse files Browse the repository at this point in the history
…ional tests
  • Loading branch information
tiagosiebler committed Sep 26, 2024
1 parent df40588 commit 0ca4f3e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 34 deletions.
4 changes: 2 additions & 2 deletions test/CBAdvancedClient/private.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { CBAdvancedTradeClient } from '../../src/index.js';

describe('CBAdvancedTradeClient PRIVATE', () => {
const account = {
key: process.env.API_KEY_NAME,
secret: process.env.API_PRIVATE_KEY,
key: process.env.CB_ADV_API_KEY_NAME,
secret: process.env.CB_ADV_API_PRIVATE_KEY,
};

const rest = new CBAdvancedTradeClient({
Expand Down
4 changes: 2 additions & 2 deletions test/CBAppClient/private.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ let accId = '';

describe('CBAppClient PRIVATE', () => {
const account = {
key: process.env.API_KEY_NAME,
secret: process.env.API_PRIVATE_KEY,
key: process.env.CB_APP_API_KEY_NAME,
secret: process.env.CB_APP_API_PRIVATE_KEY,
};

const rest = new CBAppClient({
Expand Down
9 changes: 5 additions & 4 deletions test/CBExchangeClient/private.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import { CBExchangeClient } from '../../src/index.js';

describe('CBExchangeClient PRIVATE', () => {
const account = {
key: process.env.API_KEY_NAME_EXCH,
secret: process.env.API_PRIVATE_KEY_EXCH,
passphrase: process.env.API_PASSPHRASE_EXCH,
key: process.env.CB_EXCHANGE_API_KEY_NAME_EXCH,
secret: process.env.CB_EXCHANGE_API_PRIVATE_KEY_EXCH,
passphrase: process.env.CB_EXCHANGE_API_PASSPHRASE_EXCH,
useSandbox: process.env.CB_EXCHANGE_USE_SANDBOX === 'true',
};

const rest = new CBExchangeClient({
apiKey: account.key,
apiSecret: account.secret,
apiPassphrase: account.passphrase,
useSandbox: true,
useSandbox: account.useSandbox,
});

it('should have credentials to test with', () => {
Expand Down
8 changes: 4 additions & 4 deletions test/CBInternationalClient/private.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CBInternationalClient } from '../../src/index.js';

describe('CBInternationalClient PRIVATE', () => {
describe.skip('CBInternationalClient PRIVATE', () => {
const account = {
key: process.env.API_KEY_NAME,
secret: process.env.API_PRIVATE_KEY,
passphrase: process.env.API_PASSPHRASE,
key: process.env.CB_INTX_API_KEY_NAME,
secret: process.env.CB_INTX_API_PRIVATE_KEY,
passphrase: process.env.CB_INTX_API_PASSPHRASE,
};

const rest = new CBInternationalClient({
Expand Down
18 changes: 0 additions & 18 deletions test/CBInternationalClient/public.test.ts

This file was deleted.

8 changes: 4 additions & 4 deletions test/CBPrimeClient/private.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CBPrimeClient } from '../../src/index.js';

describe('CBPrimeClient PRIVATE', () => {
describe.skip('CBPrimeClient PRIVATE', () => {
const account = {
key: process.env.API_KEY_NAME,
secret: process.env.API_PRIVATE_KEY,
passphrase: process.env.API_PASSPHRASE,
key: process.env.CB_PRIME_API_KEY_NAME,
secret: process.env.CB_PRIME_API_PRIVATE_KEY,
passphrase: process.env.CB_PRIME_API_PASSPHRASE,
};

const rest = new CBPrimeClient({
Expand Down

0 comments on commit 0ca4f3e

Please sign in to comment.