Skip to content

Commit 7705642

Browse files
committed
Pass custom html to testtool
1 parent ec82109 commit 7705642

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bin/cm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ function startServer() {
131131
let runTests = require("@marijn/testtool")
132132
let {browserTests} = runTests.gatherTests(buildPackages.map(p => p.dir))
133133
resp.writeHead(200, {"content-type": "text/html"})
134-
resp.end(runTests.testHTML(browserTests.map(f => path.relative(serve, f)), false))
134+
resp.end(runTests.testHTML(browserTests.map(f => path.relative(serve, f)), {
135+
html: `<title>CM6 view tests</title>
136+
<h1>CM6 view tests</h1>
137+
<div id="workspace" style="opacity: 0; position: fixed; top: 0; left: 0; width: 20em;"></div>`
138+
}))
135139
} else {
136140
moduleserver.handleRequest(req, resp) || serveStatic(req, resp, _err => {
137141
resp.statusCode = 404

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Marijn Haverbeke <[email protected]>",
1010
"license": "MIT",
1111
"devDependencies": {
12-
"@codemirror/buildhelper": "^1.0.0",
12+
"@codemirror/buildhelper": "^1.0.2",
1313
"esmoduleserve": "^0.2.0",
1414
"serve-static": "^1.14.1",
1515
"getdocs-ts": "^1.0.0",

0 commit comments

Comments
 (0)