Skip to content

Commit 7460eb5

Browse files
committed
Add test for string with wacky chars
1 parent 1de5626 commit 7460eb5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/server/test/evaluate.test.ts

+9
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)