Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Jul 13, 2023
1 parent 7ed8f75 commit 3b910f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/headed-mode-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/server/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ window.d2lTestPause = new Promise(r => window.d2lTestStart = r);
const controls = `
<div style="padding: 1rem; background: #ddd; border-bottom: 1px solid #888; color: #222">
<div id="start">
<button id="start-button" style="margin-end: 1rem;">Start</button>
<button id="start-button" style="margin-inline-end: 1rem;">Start</button>
<span>.${window.__WTR_CONFIG__.testFile.split('?')[0]}</span>
</div>
<div id="run" hidden>
<button id="run-button" style="margin-end: 1rem;">Run</button>
<button id="run-button" style="margin-inline-end: 1rem;">Run</button>
<span id="test-name"></span>
</div>
</div>
Expand Down

0 comments on commit 3b910f4

Please sign in to comment.