Added more unit tests
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-08-19 19:35:55 -04:00
parent 512f7f169e
commit cf4641c8fb
4 changed files with 102 additions and 17 deletions

View File

@@ -8,11 +8,15 @@ describe('GET /', () => {
this.res = res;
});
it('should return a 200 status', async () => {
it('Dashboard should return a 200 status', async () => {
expect(this.res.status).to.equal(200);
});
it('should return an HTML response', async () => {
it('Dashboard should return an HTML response', async () => {
expect(this.res.headers['content-type']).match(/text\/html/);
});
it('Dashboard should contain "Leviathan" in body', async() => {
expect(this.res.text).contains('Leviathan');
});
});