Files
calendar/apps/api/v2/test/mocks/mock-redis-service.ts
T
MorganandGitHub 9a473d5b55 chore: auth on api-v2 with api-key (#15455)
* 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
2024-06-19 16:00:22 +00:00

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;