From a32a510479caed0f6b5c761481be736b6b894ed9 Mon Sep 17 00:00:00 2001 From: Gary50613 <50613gary@gmail.com> Date: Mon, 4 Mar 2024 22:41:28 +0800 Subject: [PATCH] fix test --- test/create-redis.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/create-redis.test.ts b/test/create-redis.test.ts index b7bac88..d4dca09 100644 --- a/test/create-redis.test.ts +++ b/test/create-redis.test.ts @@ -10,7 +10,9 @@ test("create-redis", async () => { expect(redis).toBeDefined(); - const PONG = Buffer.from("PONG"); + const encoder = new TextEncoder(); + + const PONG = encoder.encode("PONG"); expect(await redis.raw("PING")).toEqual(PONG);