JS -- Send events to the sandbox from annotation layer

This commit is contained in:
Calixte Denizet 2020-11-18 14:59:57 +01:00
parent 640a08444c
commit 6502ae889d
11 changed files with 647 additions and 113 deletions

View file

@ -84,7 +84,7 @@ describe("Scripting", function () {
return s;
}
const number = 123;
const expected = ((number - 1) * number) / 2;
const expected = (((number - 1) * number) / 2).toString();
const refId = getId();
const data = {
@ -1094,7 +1094,7 @@ describe("Scripting", function () {
expect(send_queue.get(refIds[3])).toEqual({
id: refIds[3],
value: 1,
valueAsString: 1,
valueAsString: "1",
});
await sandbox.dispatchEventInSandbox({
@ -1107,7 +1107,7 @@ describe("Scripting", function () {
expect(send_queue.get(refIds[3])).toEqual({
id: refIds[3],
value: 3,
valueAsString: 3,
valueAsString: "3",
});
await sandbox.dispatchEventInSandbox({
@ -1120,7 +1120,7 @@ describe("Scripting", function () {
expect(send_queue.get(refIds[3])).toEqual({
id: refIds[3],
value: 6,
valueAsString: 6,
valueAsString: "6",
});
done();