From 94967efc7ceaaca2ce69a7e0cb094a683333843e Mon Sep 17 00:00:00 2001 From: Jonathan Louie Date: Mon, 6 Jan 2025 16:53:38 -0800 Subject: [PATCH] Fix Prettier issues Signed-off-by: Jonathan Louie --- node/tests/GlideClusterClient.test.ts | 9 +++++---- node/tests/SharedTests.ts | 15 +++++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/node/tests/GlideClusterClient.test.ts b/node/tests/GlideClusterClient.test.ts index 570a3b7c70..ae4768d05f 100644 --- a/node/tests/GlideClusterClient.test.ts +++ b/node/tests/GlideClusterClient.test.ts @@ -324,16 +324,17 @@ describe("GlideClusterClient", () => { convertRecordToGlideRecord({ timeout: "1000" }), ]); - if ( - !cluster.checkIfServerVersionLessThan("7.0.0") - ) { + if (!cluster.checkIfServerVersionLessThan("7.0.0")) { const transaction = new ClusterTransaction() .configSet({ timeout: "2000", logfile: "foo" }) .configGet(["timeout", "logfile"]); const result = await client.exec(transaction); expect(result).toEqual([ "OK", - convertRecordToGlideRecord({ timeout: "2000", logfile: "foo" }), + convertRecordToGlideRecord({ + timeout: "2000", + logfile: "foo", + }), ]); } }, diff --git a/node/tests/SharedTests.ts b/node/tests/SharedTests.ts index 434585ba6f..2f72a7a4a0 100644 --- a/node/tests/SharedTests.ts +++ b/node/tests/SharedTests.ts @@ -1244,19 +1244,22 @@ export function runBaseTests(config: { const prevLogfile = (await client.configGet([ "logfile", ])) as Record; - expect(await client.configSet({ timeout: "1000", logfile: "foo" })).toEqual( - "OK", - ); + expect( + await client.configSet({ timeout: "1000", logfile: "foo" }), + ).toEqual("OK"); const currParameterValues = (await client.configGet([ "timeout", - "logfile" + "logfile", ])) as Record; - expect(currParameterValues).toEqual({ timeout: "1000", logfile: "foo" }); + expect(currParameterValues).toEqual({ + timeout: "1000", + logfile: "foo", + }); /// Revert to the previous configuration expect( await client.configSet({ timeout: prevTimeout["timeout"], - logfile: prevLogfile["logfile"] + logfile: prevLogfile["logfile"], }), ).toEqual("OK"); }, protocol);