jQuery's Deferreds source and unit tests ported verbatim to nodejs using minimal, automated, code transformation