Tests: Node.js application tests.
This commit is contained in:
7
test/node/update_header/app.js
Executable file
7
test/node/update_header/app.js
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
require('unit-http').createServer(function (req, res) {
|
||||
res.setHeader('X-Header', 'test');
|
||||
res.setHeader('X-Header', 'new');
|
||||
res.end();
|
||||
}).listen(7080);
|
||||
Reference in New Issue
Block a user