This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user