Remove tests. Will be reintegrated at a later time

This commit is contained in:
xfarrow 2024-08-27 17:19:25 +02:00
parent 76b72f5fb8
commit 956056ce11
1 changed files with 0 additions and 34 deletions

View File

@ -1,34 +0,0 @@
// Run me with "npm test"
const request = require('supertest');
const app = require('../src/app');
require('dotenv').config({
path: '../src/.env'
});
describe('Person Tests', () => {
test('Correct registration', async () => {
const response = await request(app)
.post('/api/persons')
.send({
email: 'johntestdoe@mail.org',
password: 'password',
display_name: 'John Doe'
});
expect(response.status).toBe(200);
expect(response.body).toEqual({
activationLink: expect.any(String)
});
});
test('Incorrect registration', async () => {
const response = await request(app)
.post('/api/persons')
.send({
email: 'this is not an email',
password: 'password',
display_name: 'John Doe'
});
expect(response.status).toBe(400);
});
});