How to use the braintree-web/client.VERSION function in braintree-web

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github braintree / braintree-web-drop-in / test / unit / lib / analytics.js View on Github external
it('includes braintreeLibraryVersion', function () {
    var postArgs;

    analytics.sendEvent(this.client, 'test.event.kind');

    expect(this.client._request).to.have.been.called;
    postArgs = this.client._request.firstCall.args;

    expect(postArgs[0].data.braintreeLibraryVersion).to.equal(braintreeClientVersion);
  });
});