UNPKG

@tawk.to/nestjs-google-pubsub-microservice

Version:
16 lines 621 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const gc_pubsub_parser_1 = require("./gc-pubsub.parser"); describe(gc_pubsub_parser_1.GCPubSubParser, () => { const parser = new gc_pubsub_parser_1.GCPubSubParser(); describe('parse', () => { it('should parse the payload to ', async () => { const json = { test: 'test' }; const payload = { data: Buffer.from(JSON.stringify(json)), }; expect(await parser.parse(payload)).toMatchObject(json); }); }); }); //# sourceMappingURL=gc-pubsub.parser.spec.js.map