You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
chore: refactor parts out of the index.js file
This commit is contained in:
@@ -64,7 +64,7 @@ describe('The \'select\' method', () => {
|
||||
it('selects the appropriate database after a reconnect', (done) => {
|
||||
assert.strictEqual(client.selectedDb, undefined, 'default db should be undefined')
|
||||
client.select(3)
|
||||
client.set('foo', 'bar').then(() => client.stream.destroy())
|
||||
client.set('foo', 'bar').then(() => client._stream.destroy())
|
||||
client.once('ready', () => {
|
||||
assert.strictEqual(client.selectedDb, 3)
|
||||
assert(typeof client.serverInfo.db3 === 'object')
|
||||
|
Reference in New Issue
Block a user