const html = require('choo/html'); const assets = require('../../common/assets'); const initScript = require('../../server/initScript'); module.exports = function(app) { app.get('/mocha.css', function(req, res) { res.sendFile(require.resolve('mocha/mocha.css')); }); app.get('/mocha.js', function(req, res) { res.sendFile(require.resolve('mocha/mocha.js')); }); app.get('/test', function(req, res) { res.send( html`
${initScript({ cspNonce: 'test', locale: 'en-US' })} `.toString() ); }); };