<commit_before>/* eslint-env jasmine */

'use strict';

describe('xpay integration', function() {

  var xpay = require('../index')({
    XPAY_KEY: '123456789012345678901',
    XPAY_ALIAS: '7654321',
    XPAY_RETURN_URL_OK: 'http://www.google.com',
    XPAY_RETURN_URL_KO: 'http://www.bing.com',
  });


  it('should get a url', function(done) {
    var args = {
      transactionCode: 'ABC123000001',
      quantity: 1000 // 10 euro
    };

    var res = xpay(args.transactionCode, args.quantity);
    expect(res).toBeDefined();
    // TODO: think about more testing
    console.log(res);
    done();
  });

});<commit_msg>added description + fix test<commit_after>/* eslint-env jasmine */

'use strict';

describe('xpay integration', function() {

  var xpay = require('../index')({
    XPAY_KEY: '123456789012345678901',
    XPAY_ALIAS: '7654321',
    XPAY_RETURN_URL_OK: 'http://www.google.com',
    XPAY_RETURN_URL_KO: 'http://www.bing.com',
  });


  it('should get a url', function(done) {
    var args = {
      transactionCode: 'ABC123000001',
      quantity: 1000 // 10 euro
    };

    var mac;

var res = xpay(args.transactionCode, args.quantity, mac);
    expect(res).toBeDefined();
    // TODO: think about more testing
    console.log(res);
    done();
  });

});
{'fraction_non_alphanumeric': 0.1651017214397496, 'fraction_numerical': 0.06729264475743349, 'mean_word_length': 3.1661237785016287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '65133', 'n_tokens_mistral': 528, 'n_tokens_neox': 445, 'n_words': 94}