Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('bitsyntax parser 2', function() {
var buffer = new Buffer([0xA1, 0x3, 0x46, 0x4F, 0x4F]);
var parser = bitsyntax.parse('161:8, len:8, value:len/binary, rest/binary');
var matcher = bitsyntax.match(parser, buffer);
matcher.should.be.ok;
matcher.value.should.eql(new Buffer([0x46, 0x4F, 0x4F]));
});
it('should spit right version', function() {