added test for parameterstatus message

This commit is contained in:
brianc 2010-09-28 23:31:40 -05:00
parent 94edc2583e
commit 0ca7b93bb0

View File

@ -7,6 +7,12 @@ test('Parser on single messages', function() {
assert.equal(result.length, 8);
});
test('parses ParameterStatus message', function() {
var firstString = [0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0];
var secondString = [0x55, 0x54, 0x46, 0x38, 0];
var bytes = [53, 0, 0, 0, 0x19].concat(firstString).concat(secondString);
var result = Parser.parse(Buffer(bytes));
});
});