Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.605 kB
require('./helpers')
describe 'redis-keyspace test cleanup', () ->
client = null
beforeEach () ->
client = getClientWithPrefixAndDB keyspace_name
afterEach () ->
client.quit()
it 'should flush the test db', () ->
runBlock 'flushdb', (done) ->
client.FLUSHDB( testAsync (error, reply) ->
expect(error).toBeNull()
expect(reply).toEqual('OK')
done()
)
runBlock 'dbsize, confirms db empty', (done) ->
client.dbsize( testAsync (error, reply) ->
expect(error).toBeNull()
expect(reply).toEqual(0)
done()
)
Jump to Line
Something went wrong with that request. Please try again.