1
0
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:
Salakar
2020-02-07 01:46:35 +00:00
parent caaae9c97f
commit 3569a68f5d

View File

@@ -360,7 +360,11 @@ describe('The node_redis client', function () {
it('send_command with callback as args', function (done) {
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: ');
}
done();
});
});