All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 28s
Fixes #2 Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
// app.test.js
|
|
const request = require('supertest');
|
|
const app = require('./app');
|
|
|
|
describe('GET /', () => {
|
|
it('should respond with 200 status', async () => {
|
|
const response = await request(app).get('/');
|
|
expect(response.statusCode).toBe(200);
|
|
//expect(response.body.message).toBe('Hello, World!');
|
|
});
|
|
});
|
|
describe('GET /index.html', () => {
|
|
it('should respond with 200 status', async () => {
|
|
const response = await request(app).get('/index.html');
|
|
expect(response.statusCode).toBe(200);
|
|
//expect(response.body.message).toBe('Hello, World!');
|
|
});
|
|
});
|
|
describe('GET /what.html', () => {
|
|
it('should respond with 200 status', async () => {
|
|
const response = await request(app).get('/what.html');
|
|
expect(response.statusCode).toBe(200);
|
|
//expect(response.body.message).toBe('Hello, World!');
|
|
});
|
|
});
|
|
|
|
describe('GET /asset/frontend.js', () => {
|
|
it('should respond with 200 status', async () => {
|
|
const response = await request(app).get('/asset/frontend.js');
|
|
expect(response.statusCode).toBe(200);
|
|
//expect(response.body.message).toBe('Hello, World!');
|
|
});
|
|
});
|
|
|
|
describe('GET /getNextAnimal', () => {
|
|
it('should respond with 200 status', async () => {
|
|
const response = await request(app).get('/getNextAnimal');
|
|
expect(response.statusCode).toBe(200);
|
|
//expect(response.body.message).toBe('Hello, World!');
|
|
});
|
|
});
|
|
|
|
// vim:set sts=2 sw=2 et:
|