Skip to content

Commit 0e7e808

Browse files
committed
Add test for string with wacky chars
1 parent 984420d commit 0e7e808

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/server/test/evaluate.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ describe("Evaluate", () => {
1111
expect(value).toEqual("hi");
1212
}, 100);
1313

14+
it("should compute from string", async () => {
15+
const start = "ban\%\$\"``a,,,,asdasd";
16+
const value = await client.evaluate((a) => {
17+
return a;
18+
}, start);
19+
20+
expect(value).toEqual(start);
21+
}, 100);
22+
1423
it("should compute from object", async () => {
1524
const value = await client.evaluate((arg) => {
1625
return arg.bananas * 2;

0 commit comments

Comments
 (0)