Add test for string with wacky chars

This commit is contained in:
Kyle Carberry 2019-01-11 14:08:57 -06:00
parent 984420d181
commit 0e7e8086d4
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB
1 changed files with 9 additions and 0 deletions

View File

@ -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;