@tawk.to/nestjs-google-pubsub-microservice
Version:
NestJS Google Cloud Pub/Sub Microservice Transport
16 lines • 621 B
JavaScript
;
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