From 3b910f44dd7b8bd8ef771393d17b98d85afc7563 Mon Sep 17 00:00:00 2001 From: Danny Gleckler Date: Thu, 13 Jul 2023 08:52:54 -0400 Subject: [PATCH] Cleanup --- src/server/headed-mode-plugin.js | 2 +- src/server/pause.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/headed-mode-plugin.js b/src/server/headed-mode-plugin.js index 684c5f8b..f1fe755f 100644 --- a/src/server/headed-mode-plugin.js +++ b/src/server/headed-mode-plugin.js @@ -11,7 +11,7 @@ export function headedMode({ open, watch, pattern }) { async transform(context) { if ((watch || open) && files.includes(context.path.slice(1))) { await delay(0); - return `import '@brightspace-ui/testing/pause.js';\ndebugger;\n${context.body}`; + return `debugger;\nimport '@brightspace-ui/testing/pause.js';\n${context.body}`; } } }; diff --git a/src/server/pause.js b/src/server/pause.js index 0293b784..569144cd 100644 --- a/src/server/pause.js +++ b/src/server/pause.js @@ -3,11 +3,11 @@ window.d2lTestPause = new Promise(r => window.d2lTestStart = r); const controls = `
- + .${window.__WTR_CONFIG__.testFile.split('?')[0]}