We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534deff commit ad578bfCopy full SHA for ad578bf
test/parsers.spec.js
@@ -112,7 +112,7 @@ describe('parsers', function () {
112
}
113
var parser = new Parser({
114
returnReply: checkReply,
115
- returnError: returnError,
+ returnError: checkError,
116
returnFatalError: checkError,
117
returnBuffers: true
118
})
@@ -123,6 +123,8 @@ describe('parsers', function () {
123
assert.strictEqual(errCount, 1)
124
parser.execute(new Buffer('*1\r\n+CCC\r\n'))
125
assert.strictEqual(replyCount, 2)
126
+ parser.execute(new Buffer('-Protocol error, got "b" as reply type byte\r\n'))
127
+ assert.strictEqual(errCount, 2)
128
129
130
it('parser error v3 without returnFatalError specified', function () {
0 commit comments