diff --git a/node/tests/GlideClient.test.ts b/node/tests/GlideClient.test.ts index c990840608..250185fe86 100644 --- a/node/tests/GlideClient.test.ts +++ b/node/tests/GlideClient.test.ts @@ -34,7 +34,6 @@ import { convertStringArrayToBuffer, createLongRunningLuaScript, createLuaLibWithLongRunningFunction, - DumpAndRestureTest, encodableTransactionTest, encodedTransactionTest, flushAndCloseClient, @@ -247,7 +246,7 @@ describe("GlideClient", () => { getClientConfigurationOption(cluster.getAddresses(), protocol), ); const bytesTransaction = new Transaction(); - const expectedBytesRes = await DumpAndRestureTest( + const expectedBytesRes = await DumpAndRestoreTest( bytesTransaction, Buffer.from("value"), ); @@ -260,7 +259,7 @@ describe("GlideClient", () => { validateTransactionResponse(result, expectedBytesRes); const stringTransaction = new Transaction(); - await DumpAndRestureTest(stringTransaction, "value"); + await DumpAndRestoreTest(stringTransaction, "value"); stringTransaction.select(0); // Since DUMP gets binary results, we cannot use the string decoder here, so we expected to get an error. diff --git a/node/tests/TestUtilities.ts b/node/tests/TestUtilities.ts index d2f3831386..ef0a685588 100644 --- a/node/tests/TestUtilities.ts +++ b/node/tests/TestUtilities.ts @@ -25,12 +25,12 @@ import { GeospatialData, GlideClient, GlideClusterClient, + GlideReturnType, GlideString, InfBoundary, InsertPosition, ListDirection, ProtocolVersion, - GlideReturnType, ReturnTypeMap, ScoreFilter, SignedEncoding, @@ -653,7 +653,7 @@ export async function encodedTransactionTest( * @param valueResponse - Represents the encoded response of "value" to compare * @returns Array of tuples, where first element is a test name/description, second - expected return value. */ -export async function DumpAndRestureTest( +export async function DumpAndRestoreTest( baseTransaction: Transaction, valueResponse: GlideString, ): Promise<[string, GlideReturnType][]> {