MCPcopy
hub / github.com/nestjs/nest / objectToMap

Function objectToMap

packages/microservices/test/server/server-grpc.spec.ts:202–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201 describe('createService', () => {
202 const objectToMap = obj =>
203 new Map(Object.keys(obj).map(key => [key, obj[key]]) as any);
204
205 it('should call "createServiceMethod"', async () => {
206 const handlers = objectToMap({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected