|
|
@ -10,17 +10,15 @@ describe("The node_redis client", function () { |
|
|
|
|
|
|
|
describe("testing parser existence", function () { |
|
|
|
it('throws on non-existence', function (done) { |
|
|
|
var mochaListener = helper.removeMochaListener(); |
|
|
|
|
|
|
|
process.once('uncaughtException', function (err) { |
|
|
|
process.on('uncaughtException', mochaListener); |
|
|
|
try { |
|
|
|
redis.createClient({ |
|
|
|
parser: 'nonExistingParser' |
|
|
|
}); |
|
|
|
done(new Error('test failed')); |
|
|
|
} catch (err) { |
|
|
|
assert.equal(err.message, 'Couldn\'t find named parser nonExistingParser on this system'); |
|
|
|
return done(); |
|
|
|
}); |
|
|
|
|
|
|
|
redis.createClient({ |
|
|
|
parser: 'nonExistingParser' |
|
|
|
}); |
|
|
|
done(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|