I have been very new testing, so can anyone of you help me with how to write a test case for the below code.
import fs from 'fs';
import express from 'express';
const app = express();
const port = 6500;
app.get('/',(req,res)=>{
res.send('<h1>Welcome to api For Fs</h1>')
});
app.listen(port,(err)=>{
console.log(`Server is running on port ${port}`)
})