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) {