yahoo/mojito — pull request #853 by mojit0 (2012-12-11 22:51:45+00:00)
Title: Fix cli.js for testability.

Reorganized cli.js to make it testable.
Now uses an enclosing function to isolate the use strict pragma.
Now uses a top-level object which is exported and which holds all testable functions/properties.
The internal functions now use _ prefixes and can successfully be mocked.
Added tests for all internal functions.