Merge branch 'canary' of https://github.com/lamassu/lamassu-machine into canary-replaceLiteralStringsWithConstantStrings
Merge branch 'canary' into canary-replaceLiteralStringsWithConstantStrings
Added the constant State.PENDING_IDLE, and added a test to be sure the exitOnIdle functionality still exits with this state.
Clarified a test name
Added check for undefined in the lightOn() and lightOff() methods. In
unit testing, these can be called by code before/without _run() being
called, and in those cases they will be undefined, causing accesses of
them to fail the test.
Added test to confirm that the state is set to State.PENDING_IDLE when brain._idle() is called
Added tests to confirm various ways the state could become set to State.IDLE when brain._idle() and brain._idleOneWay() is called
Changing the literal string 'networkDown' to its constant State.NETWORK_DOWN equivalent. Added tests to confirm behavior of various scenarios where State.NETWORK_DOWN is used. Also, added getters and setters for Brain.browser and Brain.billValidator, because it was necessary for the unit test to be able to pass in its own instances of those objects for some tests.
Initial commit.
moved getters and setters to the bottom.
Added tests to ensure getters and setters are getting and setting correctly
Replaced references to the variable 'billValidator' with refs to 'getBillValidator()'
Replaced references to the variable 'browser' with refs to 'getBrowser()'
Changed the function Brain.getBrowser() to Brain.browser()
Merge pull request #43 from haxwell/canary-replaceLiteralStringsWithConstantStrings

Canary replace literal strings with constant strings