Skip to content

Commit 9d7d500

Browse files
committed
Amend
1 parent 993413a commit 9d7d500

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/langchain-core/src/utils/tests/json.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ it("strings", () => {
5454
expectPartialJson(String.raw`"15\u00f8C`).toBe("15\u00f8C");
5555
expectPartialJson(String.raw`"15\u00f8C"`).toBe("15\u00f8C");
5656

57+
expectPartialJson(String.raw`"hello\\`).toBe("hello\\");
58+
expectPartialJson(String.raw`"hello\\"`).toBe("hello\\");
59+
5760
expectPartialJson(String.raw`"hello${"\\"}`).toBe("hello\\");
5861
expectPartialJson(String.raw`"hello\"`).toBe('hello"');
5962
expectPartialJson(String.raw`"hello\""`).toBe('hello"');
6063

61-
expectPartialJson(String.raw`"hello\\`).toBe("hello\\");
62-
6364
expectPartialJson(String.raw`"\t\n\r\b\f\/`).toBe("\t\n\r\b\f/");
6465
expectPartialJson(String.raw`"\t\n\r\b\f\/"`).toBe("\t\n\r\b\f/");
6566

0 commit comments

Comments
 (0)