Skip to content

Commit 22a4e04

Browse files
address comment 2
Signed-off-by: James Xin <james.xin@improving.com>
1 parent 7b2e436 commit 22a4e04

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

node/tests/ServerModules.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,9 @@ describe("Server Module Tests", () => {
12461246
).toEqual(3);
12471247

12481248
expect(
1249-
await GlideJson.objlen(client, key, { path: "..a" }),
1249+
await GlideJson.objlen(client, Buffer.from(key), {
1250+
path: Buffer.from("..a"),
1251+
}),
12501252
).toEqual(2);
12511253

12521254
expect(await GlideJson.objlen(client, key)).toEqual(2);
@@ -1337,7 +1339,9 @@ describe("Server Module Tests", () => {
13371339
).toEqual([Buffer.from("a"), Buffer.from("b")]);
13381340

13391341
expect(
1340-
await GlideJson.objkeys(client, key, { path: "$.." }),
1342+
await GlideJson.objkeys(client, Buffer.from(key), {
1343+
path: Buffer.from("$.."),
1344+
}),
13411345
).toEqual([
13421346
["a", "b"],
13431347
["a", "b", "c"],

0 commit comments

Comments
 (0)