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 2bbd18b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/helpers/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const prepareParamsFromOptions = (options: any, params?: Array<string>) => {
let bodyParams: any = options
let pathParams: any = {}

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

if (bodyParams.order_token) {
token.orderToken = bodyParams.order_token
if (bodyParams?.order_token || bodyParams?.orderToken) {
token.orderToken = bodyParams.order_token || bodyParams.orderToken
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 2bbd18b

Please sign in to comment.