We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can someone explain to me what i'm doing wrong? Because my test never end..
var express = require('express'); var test = require('tape'); test('test', function (t) { var app; t.plan(1); function start() { t.pass('server started'); } function error(err) { t.error(err, 'server startup failed'); } app = express(); app.listen('8080', 'localhost', function(err) { if (err) return error(err) return start(); }); });
Outputs :
tape tests/*.js
TAP version 13 # test ok 1 server started
The text was updated successfully, but these errors were encountered:
@tommy31
You forgot app.close()
app.close()
Sorry, something went wrong.
No branches or pull requests
Can someone explain to me what i'm doing wrong? Because my test never end..
Outputs :
The text was updated successfully, but these errors were encountered: