Tests: Node.js application tests.
This commit is contained in:
6
test/node/404/404.html
Normal file
6
test/node/404/404.html
Normal 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
8
test/node/404/app.js
Executable 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);
|
||||
Reference in New Issue
Block a user