diff --git a/test/serve-preview.js b/test/serve-preview.js index b43ab67..28ee319 100644 --- a/test/serve-preview.js +++ b/test/serve-preview.js @@ -31,9 +31,15 @@ const serveIndex = serveMarked(md, { ` }) +const serve404 = (req, res) => { + res.writeHead(404) + res.end() +} + http.createServer((req, res) => { switch (req.url) { case '/': return serveIndex(req, res) + case '/favicon.ico': return serve404(req, res) default: return serveBadge(req, res) } }).listen(3000)