From 0e7e8086d41f2ef104601ce171f1d2ef04c58986 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 11 Jan 2019 14:08:57 -0600 Subject: [PATCH] Add test for string with wacky chars --- packages/server/test/evaluate.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/server/test/evaluate.test.ts b/packages/server/test/evaluate.test.ts index 384b6025..f8dfe926 100644 --- a/packages/server/test/evaluate.test.ts +++ b/packages/server/test/evaluate.test.ts @@ -11,6 +11,15 @@ describe("Evaluate", () => { expect(value).toEqual("hi"); }, 100); + it("should compute from string", async () => { + const start = "ban\%\$\"``a,,,,asdasd"; + const value = await client.evaluate((a) => { + return a; + }, start); + + expect(value).toEqual(start); + }, 100); + it("should compute from object", async () => { const value = await client.evaluate((arg) => { return arg.bananas * 2;