1
0
forked from fr/deguapp
deguapp/api/tests/auth.test.ts
2024-04-30 00:50:34 +02:00

18 lines
381 B
TypeScript

import request from "supertest"
import {server as app} from "../server"
describe('Auth API Endpoints', () => {
afterAll((done) => {
app.close(done);
})
it('should signup new user', async () => {
const res = await request(app)
.post('/api/auth/signup')
.send({});
expect(res.statusCode).toEqual(200)
})
})