All files / tictactoe index.js

81.81% Statements 9/11
75% Branches 3/4
50% Functions 1/2
81.81% Lines 9/11

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 191x 1x 1x 1x   1x   1x 1x     1x           1x  
const express = require('express');
const path = require('path');
const app = express();
const port = process.env.PORT || 3000;
 
app.use(express.static(path.join(__dirname, 'public')));
 
app.get('/health', (req, res) => {
  res.status(200).send('OK');
});
 
Iif (require.main === module) {
  app.listen(port, () => {
    console.log(`TicTacToe running on port ${port}`);
  });
}
 
module.exports = app;