mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Update serialport-tests.ts
This commit is contained in:
@@ -107,7 +107,7 @@ function test_parsers() {
|
||||
const CCTalkParser = new SerialPort.parsers.CCTalk();
|
||||
const DelimiterParser = new SerialPort.parsers.Delimiter({ delimiter: Buffer.from('EOL') });
|
||||
const ReadlineParser = new SerialPort.parsers.Readline({ delimiter: '\r\n' });
|
||||
const ReadyParser = new SerialPort.parsers.Ready({ data: 'READY' });
|
||||
const ReadyParser = new SerialPort.parsers.Ready({ delimiter: 'READY' });
|
||||
const RegexParser = new SerialPort.parsers.Regex({regex: /.*/});
|
||||
|
||||
port.pipe(ByteLengthParser);
|
||||
|
||||
Reference in New Issue
Block a user