You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
start of work towards v3 release
This commit is contained in:
@@ -140,10 +140,14 @@ describe("The 'set' method", function () {
|
||||
});
|
||||
});
|
||||
|
||||
// TODO: This test has to be refactored from v.3.0 on to expect an error instead
|
||||
it("converts null to 'null'", function (done) {
|
||||
client.set('foo', null);
|
||||
client.get('foo', helper.isString('null', done));
|
||||
it('errors if null value is passed', function (done) {
|
||||
try {
|
||||
client.set('foo', null);
|
||||
assert(false);
|
||||
} catch (error) {
|
||||
assert(/The SET command contains a invalid argument type./.test(error.message));
|
||||
}
|
||||
client.get('foo', helper.isNull(done));
|
||||
});
|
||||
|
||||
it('emit an error with only the key set', function (done) {
|
||||
|
Reference in New Issue
Block a user