diff --git a/src/mergeData.ts b/src/mergeData.ts index 5ef983e..6b0f120 100644 --- a/src/mergeData.ts +++ b/src/mergeData.ts @@ -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); @@ -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; @@ -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); @@ -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 = { diff --git a/src/runTests.ts b/src/runTests.ts index 609209b..5a92d13 100644 --- a/src/runTests.ts +++ b/src/runTests.ts @@ -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; @@ -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[] = [];