1
0
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:
Salakar
2020-02-09 02:05:21 +00:00
parent 1d8fa45689
commit c0cc0bfab4
18 changed files with 234 additions and 400 deletions

View File

@@ -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) {