Tests: Node.js application tests.

This commit is contained in:
Sergey Kandaurov
2018-10-25 15:43:48 +03:00
parent 41d3d63758
commit 0fdc7c3a55
18 changed files with 342 additions and 0 deletions

10
test/node/write_callback/app.js Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env node
require('unit-http').createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
var a = 'blah';
res.write('hello', 'utf8', function() {
a = 'world';
});
res.end(a);
}).listen(7080);