From 757f308ed69c5d3307faaba928a0ef8fcc7af705 Mon Sep 17 00:00:00 2001 From: plondon Date: Mon, 4 Oct 2021 09:07:38 -0400 Subject: [PATCH] test logs --- backend/api.js | 4 ++++ frontend/src/app.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/api.js b/backend/api.js index f8933b4..cb4c806 100644 --- a/backend/api.js +++ b/backend/api.js @@ -287,6 +287,10 @@ export class Session { }; runCode = async (code, isTest = false, expectedOutput) => { + console.log('runCode') + console.log('code', code) + console.log('isTest', isTest) + console.log('expectedOutput', expectedOutput) try { const { name, repl, suffix, createEmpty, compile, run, template } = this.config; diff --git a/frontend/src/app.js b/frontend/src/app.js index 1012417..74eca6d 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -125,7 +125,7 @@ async function main() { window.parent.postMessage({ event: "total_test_start", type: "test", - }); + }, "*"); window.parent.postMessage({ $id: 0, @@ -140,12 +140,12 @@ async function main() { status: pass ? "pass" : "fail", }, type: "test", - }); + }, "*"); window.parent.postMessage({ event: "total_test_end", type: "test", - }); + }, "*"); return; case "lspStopped": if (clientDisposable) {