You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
chore: refactor codebase to promises
This commit is contained in:
@@ -9,16 +9,14 @@ describe('The \'zscore\' method', () => {
|
||||
describe(`using ${ip}`, () => {
|
||||
let client
|
||||
|
||||
beforeEach((done) => {
|
||||
beforeEach(() => {
|
||||
client = redis.createClient.apply(null, args)
|
||||
client.once('ready', () => {
|
||||
client.flushdb(done)
|
||||
})
|
||||
return client.flushdb()
|
||||
})
|
||||
|
||||
it('should return the score of member in the sorted set at key', (done) => {
|
||||
it('should return the score of member in the sorted set at key', () => {
|
||||
client.zadd('myzset', 1, 'one')
|
||||
client.zscore('myzset', 'one', helper.isString('1', done))
|
||||
return client.zscore('myzset', 'one').then(helper.isString('1'))
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
Reference in New Issue
Block a user