Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test error client 404 #34

Open
MaiUbeid opened this issue Aug 22, 2019 · 0 comments
Open

Test error client 404 #34

MaiUbeid opened this issue Aug 22, 2019 · 0 comments

Comments

@MaiUbeid
Copy link

tape('testing the home route', (t) => {
supertest(app)
.get('/')
.expect(200)
.expect('Content-Type', /html/)
.end((err, res) => {
if (err) {
t.error(err);
} else {
t.ok(res.text.includes('<button', 'the html file has buttons'));
t.end();
}
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant