diff --git a/packages/client/lib/client/index.spec.ts b/packages/client/lib/client/index.spec.ts index a0824e440ba..994e8a0c07f 100644 --- a/packages/client/lib/client/index.spec.ts +++ b/packages/client/lib/client/index.spec.ts @@ -65,6 +65,19 @@ describe('Client', () => { ); }); + it('redis://localhost:6379?db=0', () => { + assert.deepEqual( + RedisClient.parseURL('redis://localhost:6379?db=0'), + { + socket: { + host: 'localhost', + port: 6379 + }, + database: 0 + } + ); + }); + it('rediss://user:secret@localhost:6379/0', () => { assert.deepEqual( RedisClient.parseURL('rediss://user:secret@localhost:6379/0'),