Skip to content

Commit

Permalink
reformat: formatting w prettier explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun0157 committed May 11, 2024
1 parent e14a33b commit 1274116
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/mergeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function getMergedParams(commonParams: RawParams, requestParams: RawParams): Par

function getMergedHeaders(
commonHeaders: RawHeaders,
requestHeaders: RawHeaders
requestHeaders: RawHeaders,
): { [name: string]: string } {
if (Array.isArray(commonHeaders)) {
commonHeaders = getArrayHeadersAsObject(commonHeaders);
Expand Down Expand Up @@ -80,7 +80,7 @@ function getMergedOptions(cOptions: RawOptions = {}, rOptions: RawOptions = {}):

function getMergedSetVars(
setvars: RawSetVars = {},
captures: Captures = {}
captures: Captures = {},
): { mergedVars: SetVar[]; hasJsonVars: boolean } {
const mergedVars: SetVar[] = [];
let hasJsonVars = false;
Expand Down Expand Up @@ -153,7 +153,7 @@ function mergePrefixBasedTests(tests: RawTests) {

function getMergedTests(
cTests: RawTests = {},
rTests: RawTests = {}
rTests: RawTests = {},
): { mergedTests: Tests; hasJsonTests: boolean } {
// Convert $. and h. at root level into headers and json keys
mergePrefixBasedTests(cTests);
Expand Down Expand Up @@ -210,11 +210,11 @@ export function getMergedData(commonData: Common, requestData: RawRequest): Requ

const { mergedTests: tests, hasJsonTests: hasJsonTests } = getMergedTests(
commonData?.tests,
requestData.tests
requestData.tests,
);
const { mergedVars: setvars, hasJsonVars: hasJsonVars } = getMergedSetVars(
requestData.setvars,
requestData.capture
requestData.capture,
);

const mergedData: RequestSpec = {
Expand Down
4 changes: 2 additions & 2 deletions src/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Tests, ResponseData, TestResult, Assertion } from "./models";
export function runAllTests(
tests: Tests,
responseData: ResponseData,
stopOnFailure: boolean
stopOnFailure: boolean,
): TestResult[] {
const results: TestResult[] = [];
if (!tests) return results;
Expand Down Expand Up @@ -74,7 +74,7 @@ function getValueForJSONTests(responseContent: object, key: string): any {
function runObjectTests(
opVals: { [key: string]: any },
receivedObject: any,
spec: string
spec: string,
): TestResult[] {
let results: TestResult[] = [];

Expand Down

0 comments on commit 1274116

Please sign in to comment.