You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: improve coverage & fix unreachable code branches
This commit is contained in:
@@ -150,6 +150,10 @@ describe("The 'set' method", function () {
|
||||
client.get('foo', helper.isNull(done));
|
||||
});
|
||||
|
||||
it('calls callback with error if null value is passed', function (done) {
|
||||
client.set('foo', null, helper.isError(done));
|
||||
});
|
||||
|
||||
it('emit an error with only the key set', function (done) {
|
||||
client.on('error', function (err) {
|
||||
assert.equal(err.message, "ERR wrong number of arguments for 'set' command");
|
||||
|
Reference in New Issue
Block a user