Tests: more Node.js tests.

This commit is contained in:
Andrey Zelenkov
2018-12-11 18:30:58 +03:00
parent 37cd6d23b6
commit aafa4bbaf9
11 changed files with 200 additions and 2 deletions

16
test/node/promise_end/app.js Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env node
var fs = require('fs');
require('unit-http').createServer(function (req, res) {
res.write('blah');
Promise.resolve().then(() => {
res.end();
});
req.on('data', (data) => {
fs.appendFile('callback', '', function() {});
});
}).listen(7080);