SBoudrias/Inquirer.js — pull request #79 by tklun (2013-11-02 16:34:25+00:00)
Title: Adds more robust testing for up/down navigation

I've updated one test and added another to fix a couple potential gaps in the up/down navigation testing.

I updated the test in `test/specs/prompts/list.js` to be a little more thorough. The original tests simulate pressing down and then up, which brings you back to the original position. This would catch the case where one of the directions was not implemented correctly, but not if both were implemented incorrectly (as the start and end conditions are the same). Granted, without up and down navigation many other tests would fail. However, this small change allows for this test to stand alone should it ever need to.

`test/specs/prompts/checkbox.js` tests down arrow navigation indirectly. However, I was able to disable up arrow navigation in the checkbox prompt and still have all the tests pass. This pull requests adds explicit arrow navigation testing to cover both up and down arrow navigation.