You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: refactor codebase to promises
This commit is contained in:
@@ -9,20 +9,14 @@ describe('The \'geoadd\' 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('returns 1 if the key exists', function (done) {
|
||||
it('returns 1 if the key exists', function () {
|
||||
helper.serverVersionAtLeast.call(this, client, [3, 2, 0])
|
||||
client.geoadd('mycity:21:0:location', '13.361389', '38.115556', 'COR', (err, res) => {
|
||||
console.log(err, res)
|
||||
// geoadd is still in the unstable branch. As soon as it reaches the stable one, activate this test
|
||||
done()
|
||||
})
|
||||
return client.geoadd('mycity:21:0:location', '13.361389', '38.115556', 'COR')
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
Reference in New Issue
Block a user