How to use the messaging-api-viber.ViberClient function in messaging-api-viber

To help you get started, we’ve selected a few messaging-api-viber examples, based on popular ways it is used in public projects.

github Yoctol / bottender / packages / bottender / src / viber / __tests__ / ViberConnector.spec.ts View on Github external
function setup() {
  const mockViberClient = new ViberClient({
    accessToken: ACCESS_TOKEN,
    sender: { name: 'sender' },
  });
  ViberClient.connect = jest.fn();
  ViberClient.connect.mockReturnValue(mockViberClient);

  return {
    mockViberClient,
    connector: new ViberConnector({
      accessToken: ACCESS_TOKEN,
      sender: { name: 'sender' },
    }),
  };
}

messaging-api-viber

Messaging API client for Viber

MIT
Latest version published 12 months ago

Package Health Score

72 / 100
Full package analysis

Similar packages