Commit graph

16 commits

Author SHA1 Message Date
Chris Williams
06f723df65 Merge pull request #452 from jacobrosenthal/emittests
Missing emits for close and disconnect
2015-01-21 09:25:03 -05:00
Chris Williams
255c8be767 Merge pull request #450 from jacobrosenthal/errortests
Needed tests on operating on ports that are not open
2015-01-21 09:24:50 -05:00
Jacob Rosenthal
d08a43bfed test close and disconnect emit 2015-01-20 23:19:05 -07:00
Jacob Rosenthal
8e93e353f9 stopbits, parity, flowcontrol invalid tests 2015-01-20 23:03:40 -07:00
Jacob Rosenthal
69d0382a51 tests if you try to operate on a non open port 2015-01-20 22:52:37 -07:00
Francis Gulotta
87d3fa08a7 Use the jshintrc file for grunt and cleanup some issues. 2015-01-21 00:13:48 -05:00
Jacob Rosenthal
d99c547928 need a test to see that open event was fired 2015-01-20 19:41:15 -07:00
Rick Waldron
e1638cee36 Emit error on serialport when explicit handler present. Fixes gh-369
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2014-08-10 15:56:00 -04:00
Francis Gulotta
a7b22dffeb Merge pull request #279 from voodootikigod/optionalfunctions
don't set options on a callback open function
2013-12-17 13:17:10 -08:00
Francis Gulotta
c796fe7dce don't set options on a callback open function 2013-12-14 19:54:32 -05:00
Francis Gulotta
4f19804d24 Added some basic close event tests - removed some code around read streams that isn't used anymore 2013-12-14 16:54:34 -05:00
Francis Gulotta
dd642c95d4 Add a JS disconnect test and mock hardware disconnect command. 2013-12-12 09:27:24 -05:00
Francis Gulotta
1b831f079f Add some basic read tests 2013-11-12 15:37:32 -05:00
Francis Gulotta
c9495a713c Move the read test into serialport-basic. Make use of sinon sandboxes, refactor the mock serial-port-binding into linux hardware for "remote control" 2013-11-12 13:54:34 -05:00
Francis Gulotta
d589347550 Fix spelling and whitespace 2013-10-29 15:57:20 -04:00
Francis Gulotta
86f5ffd9f0 Add a mock for SerialPortBinding and modify the tests to use it. This includes examples of mocking functions to simulate failures, spying on method calls to ensure they were called and the expects flavor of mocha assertions.
Also splits parsers into their own file.
2013-10-29 00:05:39 -04:00