Skip to content

Why are you testing the status code twice? #73

@Bear-Coding

Description

@Bear-Coding

tape("homepage endpoint", t => {
supertest(app)
.get("/home")
.expect(200)
.end(function(err, res) {
t.equal(res.statusCode, 200, `homepage endpoint redirects the user when he is not authenticated`);
t.end();
});
});

Same goes for all tests

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions