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

6
test/node/404/404.html Normal file
View File

@@ -0,0 +1,6 @@
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
</body>
</html>

8
test/node/404/app.js Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env node
var fs = require('fs');
require('unit-http').createServer(function (req, res) {
res.writeHead(404, {});
res.end(fs.readFileSync('404.html'));
}).listen(7080);