Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aplegatt committed Aug 1, 2022
1 parent 80492e9 commit b205870
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/helpers/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const prepareParamsFromOptions = (options: any, params?: Array<string>) => {
let bodyParams: any = options
let pathParams: any = {}

if (bodyParams.bearer_token) {
if (bodyParams?.bearer_token) {
token.bearerToken = bodyParams.bearer_token
delete bodyParams.bearer_token
}

if (bodyParams.order_token) {
if (bodyParams?.order_token) {
token.orderToken = bodyParams.order_token
delete bodyParams.order_token
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "commonjs",
"allowSyntheticDefaultImports": true,
"strict": true,
"lib": ["es6", "dom", "scripthost"],
"lib": ["es2019", "dom", "scripthost"],
"moduleResolution": "node",
"types": ["cypress"],
"importsNotUsedAsValues": "remove"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-client.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es2020"
"target": "es2019"
}
}
2 changes: 1 addition & 1 deletion tsconfig-server.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es2020"
"target": "es2019"
}
}

0 comments on commit b205870

Please sign in to comment.