Spaces:
Sleeping
Sleeping
File size: 417 Bytes
50a7502 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import express, { Application } from 'express';
import request from 'supertest';
import getHello from '../src/controllers/getter.controller.js';
const app = express();
app.get('/', getHello);
describe('GET /', () => {
it('should return "Hello World"', async () => {
const res = await request(app).get('/');
expect(res.status).toBe(200);
expect(res.text).toBe('Hello World');
});
});
|