Skip to content

Commit

Permalink
prettier #2
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Awawdi <mawawdi@amazon.com>
  • Loading branch information
Muhammad-awawdi-amazon committed Nov 6, 2024
1 parent c876100 commit 69515ac
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions node/tests/TestUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export function checkFunctionListResponse(
typeof libName === "string"
? libName === lib["library_name"]
: (libName as Buffer).compare(lib["library_name"] as Buffer) ==
0;
0;

if (hasLib) {
const functions = lib["functions"];
Expand Down Expand Up @@ -519,7 +519,7 @@ export function checkFunctionStatsResponse(
if (response.running_script !== null && runningFunction.length == 0) {
fail(
"Unexpected running function info: " +
(response.running_script.command as string[]).join(" "),
(response.running_script.command as string[]).join(" "),
);
}

Expand Down Expand Up @@ -559,10 +559,10 @@ export function validateTransactionResponse(
const actual =
response?.[i] instanceof Map
? JSON.stringify(
Array.from(
(response?.[i] as ReturnTypeMap)?.entries(),
),
)
Array.from(
(response?.[i] as ReturnTypeMap)?.entries(),
),
)
: JSON.stringify(response?.[i]);
failedChecks.push(
`${testName} failed, expected <${expected}>, actual <${actual}>`,
Expand All @@ -573,7 +573,7 @@ export function validateTransactionResponse(
if (failedChecks.length > 0) {
throw new Error(
"Checks failed in transaction response:\n" +
failedChecks.join("\n"),
failedChecks.join("\n"),
);
}
}
Expand Down Expand Up @@ -1319,18 +1319,18 @@ export async function transactionTest(
'xautoclaim(key9, groupName1, consumer, 0, "0-0", { count: 1 })',
gte(version, "7.0.0")
? [
"0-0",
convertRecordToGlideRecord({
"0-2": [["field", "value2"]],
}),
[],
]
"0-0",
convertRecordToGlideRecord({
"0-2": [["field", "value2"]],
}),
[],
]
: [
"0-0",
convertRecordToGlideRecord({
"0-2": [["field", "value2"]],
}),
],
"0-0",
convertRecordToGlideRecord({
"0-2": [["field", "value2"]],
}),
],
]);
baseTransaction.xautoclaimJustId(key9, groupName1, consumer, 0, "0-0");
responseData.push([
Expand Down

0 comments on commit 69515ac

Please sign in to comment.