diff --git a/deploy-and-test/.prettierignore b/deploy-and-test/.prettierignore deleted file mode 100644 index 1f23215d..00000000 --- a/deploy-and-test/.prettierignore +++ /dev/null @@ -1,5 +0,0 @@ -package.json -node_modules -dist -coverage -*.yml \ No newline at end of file diff --git a/deploy-and-test/.prettierrc b/deploy-and-test/.prettierrc deleted file mode 100644 index aa2887b5..00000000 --- a/deploy-and-test/.prettierrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "singleQuote": true, - "trailingComma": "all", - "bracketSpacing": false, - "jsxBracketSameLine": false, - "proseWrap": "always" -} \ No newline at end of file diff --git a/lib/mablApiClient.js b/lib/mablApiClient.js index 979309f4..ab4a8991 100644 --- a/lib/mablApiClient.js +++ b/lib/mablApiClient.js @@ -105,14 +105,14 @@ class mablApiClient { : null; uri ? (planOverrides.uri = uri) : null; requestBody.plan_overrides = planOverrides; + revision ? (requestBody.revision = revision) : null; + event_time ? (requestBody.event_time = event_time) : null; + properties ? (requestBody.properties = properties) : null; let actions = {}; rebaselineImages ? (actions.rebaseline_images = rebaselineImages) : null; setStaticBaseline ? (actions.set_static_baseline = setStaticBaseline) : null; - revision ? (actions.revision = revision) : null; - event_time ? (actions.event_time = event_time) : null; - properties ? (actions.properties = properties) : null; requestBody.actions = actions; return requestBody; } diff --git a/src/mablApiClient.ts b/src/mablApiClient.ts index 9b16e9da..cb61b02c 100644 --- a/src/mablApiClient.ts +++ b/src/mablApiClient.ts @@ -147,14 +147,16 @@ export class mablApiClient { uri ? (planOverrides.uri = uri) : null; requestBody.plan_overrides = planOverrides; + revision ? (requestBody.revision = revision) : null; + event_time ? (requestBody.event_time = event_time) : null; + properties ? (requestBody.properties = properties) : null; + + let actions: any = {}; rebaselineImages ? (actions.rebaseline_images = rebaselineImages) : null; setStaticBaseline ? (actions.set_static_baseline = setStaticBaseline) : null; - revision ? (actions.revision = revision) : null; - event_time ? (actions.event_time = event_time) : null; - properties ? (actions.properties = properties) : null; requestBody.actions = actions; return requestBody; }