mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-20 02:13:09 -07:00
fix code, readme and lint
This commit is contained in:
parent
42c60c64c2
commit
350abbdf3b
14 changed files with 158 additions and 153 deletions
|
@ -14,7 +14,7 @@ describe('Redis document store', () => {
|
|||
it('should be able to set a key and have an expiration set', async () => {
|
||||
store = new RedisDocumentStore({
|
||||
expire: 10,
|
||||
type: StoreNames.redis
|
||||
type: StoreNames.Redis
|
||||
})
|
||||
return store.set('hello1', 'world', async () => {
|
||||
const res = await store.client?.ttl('hello1')
|
||||
|
@ -25,7 +25,7 @@ describe('Redis document store', () => {
|
|||
it('should not set an expiration when told not to', async () => {
|
||||
store = new RedisDocumentStore({
|
||||
expire: 10,
|
||||
type: StoreNames.redis
|
||||
type: StoreNames.Redis
|
||||
})
|
||||
|
||||
store.set(
|
||||
|
@ -41,7 +41,7 @@ describe('Redis document store', () => {
|
|||
|
||||
it('should not set an expiration when expiration is off', async () => {
|
||||
store = new RedisDocumentStore({
|
||||
type: StoreNames.redis
|
||||
type: StoreNames.Redis
|
||||
})
|
||||
|
||||
store.set('hello3', 'world', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue