From 0fdc7c3a55daceb54c034a51b30f06a932236965 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Thu, 25 Oct 2018 15:43:48 +0300 Subject: Tests: Node.js application tests. --- test/node/404/404.html | 6 ++++++ test/node/404/app.js | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/node/404/404.html create mode 100755 test/node/404/app.js (limited to 'test/node/404') diff --git a/test/node/404/404.html b/test/node/404/404.html new file mode 100644 index 00000000..6d0c635a --- /dev/null +++ b/test/node/404/404.html @@ -0,0 +1,6 @@ + +404 Not Found + +

404 Not Found

+ + diff --git a/test/node/404/app.js b/test/node/404/app.js new file mode 100755 index 00000000..9600d486 --- /dev/null +++ b/test/node/404/app.js @@ -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); -- cgit