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: fix test on windows
This commit is contained in:
@@ -360,7 +360,11 @@ describe('The node_redis client', function () {
|
|||||||
|
|
||||||
it('send_command with callback as args', function (done) {
|
it('send_command with callback as args', function (done) {
|
||||||
client.send_command('abcdef', function (err, res) {
|
client.send_command('abcdef', function (err, res) {
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
assert.strictEqual(err.message, 'ERR unknown command `abcdef`');
|
||||||
|
} else {
|
||||||
assert.strictEqual(err.message, 'ERR unknown command `abcdef`, with args beginning with: ');
|
assert.strictEqual(err.message, 'ERR unknown command `abcdef`, with args beginning with: ');
|
||||||
|
}
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user