added switch tests
Simple switch and sonar tests
Update test/pin.js to use the MockFirmata()
Use MockFirmata and close stdin so the test quits right away.
Add button and Capabilities to the list of MockFirmata users.
Rewrite ping tests to use MockFirmata and not use serial data. However, I'm not %100 confident in the change event tests. It's no worse then it was before but the behavior seems suspect.
Update pir tests to use MockFirmata and FakeTimers
Linting and leftover vars.
Rewrite sensor.js to use fakeTimers and mockFirmata
ShiftRegister to use mockfirmata
Merge branch 'master' into tests
Added sonar data events
added simon tests
sinon based event testing for sonar and switch
removed unused serial references
added button event tests
removed unused serial references
removed unused lines
Style fixes
Merge branch 'tests' of https://github.com/divanvisagie/johnny-five

# By divanvisagie
# Via divanvisagie
* 'tests' of https://github.com/divanvisagie/johnny-five:
  Style fixes
  removed unused lines
  removed unused serial references
  added button event tests
  removed unused serial references
  sinon based event testing for sonar and switch
  added simon tests
  Added sonar data events
  Simple switch and sonar tests
  added switch tests

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>