* chore: enable apiv2 auth with api keys * chore: enable apiv2 auth with api keys * chore: enable apiv2 auth with api keys * chore: enable apiv2 auth with api keys * chore: enable apiv2 auth with api keys * fixup! chore: enable apiv2 auth with api keys * fixup! Merge branch 'chore-apiv2-auth-api-key' of github.com:calcom/cal.com into chore-apiv2-auth-api-key * fixup! fixup! Merge branch 'chore-apiv2-auth-api-key' of github.com:calcom/cal.com into chore-apiv2-auth-api-key * fixup! fixup! fixup! Merge branch 'chore-apiv2-auth-api-key' of github.com:calcom/cal.com into chore-apiv2-auth-api-key
16 lines
342 B
TypeScript
16 lines
342 B
TypeScript
import { RedisService } from "@/modules/redis/redis.service";
|
|
import { Provider } from "@nestjs/common";
|
|
|
|
export const MockedRedisService = {
|
|
provide: RedisService,
|
|
useValue: {
|
|
redis: {
|
|
get: jest.fn(),
|
|
hgetall: jest.fn(),
|
|
set: jest.fn(),
|
|
hmset: jest.fn(),
|
|
expireat: jest.fn(),
|
|
},
|
|
},
|
|
} as Provider;
|