All files / src html.js

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 243x     2x 2x 2x                                    
module.exports = function html ({
  staticHost,
  title
}) {
  staticHost = staticHost || ''
  return `
  <!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
      <link rel="shortcut icon" type="image/x-icon" href="${staticHost}assets/favicon.ico" />
      <link href="${staticHost}assets/index.css" rel="stylesheet">
 
      <title>${title}</title>
    </head>
    <body>
      <div id="root"></div>
      <script src="${staticHost}assets/index.js"></script>
    </body>
  </html>
  `
}