node-red/node-red — pull request #427 by hindessm (2014-10-01 13:55:59+00:00)
Title: Add nock to node test helper.

@knolleary,

I think a few node tests (web nodes in particular) will want to use nock which it turns out only works on node >= 0.10. Rather than have lots of tests doing the check against node.version. I thought it could be done here and node tests could just do:

var nock = helper.node;
...
if (nock) {
it('test requiring nock', ...);
}

What do you think about doing this? Is there a more elegant way?

-Mark.