Add test for string with wacky chars
This commit is contained in:
parent
984420d181
commit
0e7e8086d4
|
@ -11,6 +11,15 @@ describe("Evaluate", () => {
|
||||||
expect(value).toEqual("hi");
|
expect(value).toEqual("hi");
|
||||||
}, 100);
|
}, 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 () => {
|
it("should compute from object", async () => {
|
||||||
const value = await client.evaluate((arg) => {
|
const value = await client.evaluate((arg) => {
|
||||||
return arg.bananas * 2;
|
return arg.bananas * 2;
|
||||||
|
|
Loading…
Reference in New Issue