Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / http-proxy / test / examples-test.js
1 /*
2  * examples.js: Tests which ensure all examples do not throw errors.
3  *
4  * (C) 2010, Charlie Robbins
5  *
6  */
7
8 var vows = require('vows')
9     macros = require('./macros'),
10     examples = macros.examples;
11
12 //
13 // Suppress `EADDRINUSE` errors since
14 // we are just checking for require-time errors
15 //
16 process.on('uncaughtException', function (err) {
17   if (err.code !== 'EADDRINUSE') {
18     throw err;
19   }
20 });
21
22 vows.describe('node-http-proxy/examples').addBatch(
23   examples.shouldHaveDeps()
24 ).addBatch(
25   examples.shouldHaveNoErrors()
26 ).export(module);