You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Add more tests
Add execution order tests Fix flaky test Add utils tests Improve other tests
This commit is contained in:
@ -66,14 +66,21 @@ describe("The 'set' method", function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe("with undefined 'key' and missing 'value' parameter", function () {
|
||||
it("reports an error", function (done) {
|
||||
describe("reports an error with invalid parameters", function () {
|
||||
it("undefined 'key' and missing 'value' parameter", function (done) {
|
||||
client.set(undefined, function (err, res) {
|
||||
helper.isError()(err, null);
|
||||
assert.equal(err.command, 'SET');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("empty array as second parameter", function (done) {
|
||||
client.set('foo', [], function (err, res) {
|
||||
assert.strictEqual(err.message, "ERR wrong number of arguments for 'set' command");
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user