Skip to content

Commit

Permalink
[DE-1091] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-nedza committed Dec 13, 2024
1 parent d448807 commit e91600c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions e2e/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { Client, Environment } from 'advanced-billing-sdk';
import { Client } from 'advanced-billing-sdk';

export const CONFIG = {
SDK_KEY: process.env.SDK_KEY,
PASSWORD: process.env.PASSWORD,
SUBDOMAIN: process.env.SUBDOMAIN,
DOMAIN: process.env.DOMAIN,
};

const defaultOptions = {
timeout: 0,
domain: CONFIG.DOMAIN,
environment: Environment.Production,
subdomain: CONFIG.SUBDOMAIN,
site: CONFIG.SUBDOMAIN,
basicAuthCredentials: {
username: CONFIG.SDK_KEY || '',
password: CONFIG.PASSWORD || '',
Expand All @@ -26,9 +23,7 @@ export function createClient(options = defaultOptions) {
export function createInvalidClient() {
return createClient({
timeout: 0,
domain: CONFIG.DOMAIN,
environment: Environment.Production,
subdomain: CONFIG.SUBDOMAIN,
site: CONFIG.SUBDOMAIN,
basicAuthCredentials: {
username: 'invalidKey' || '',
password: CONFIG.PASSWORD || '',
Expand Down

0 comments on commit e91600c

Please sign in to comment.