Skip to content

Commit d3c2fd7

Browse files
address comment 2
Signed-off-by: James Xin <james.xin@improving.com>
1 parent aa6738c commit d3c2fd7

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
@@ -1465,7 +1465,9 @@ describe("Server Module Tests", () => {
14651465
).toEqual(3);
14661466

14671467
expect(
1468-
await GlideJson.objlen(client, key, { path: "..a" }),
1468+
await GlideJson.objlen(client, Buffer.from(key), {
1469+
path: Buffer.from("..a"),
1470+
}),
14691471
).toEqual(2);
14701472

14711473
expect(await GlideJson.objlen(client, key)).toEqual(2);
@@ -1556,7 +1558,9 @@ describe("Server Module Tests", () => {
15561558
).toEqual([Buffer.from("a"), Buffer.from("b")]);
15571559

15581560
expect(
1559-
await GlideJson.objkeys(client, key, { path: "$.." }),
1561+
await GlideJson.objkeys(client, Buffer.from(key), {
1562+
path: Buffer.from("$.."),
1563+
}),
15601564
).toEqual([
15611565
["a", "b"],
15621566
["a", "b", "c"],

0 commit comments

Comments
 (0)