<commit_before>// es6 runtime requirements
require('babel/polyfill');
import gplayinfo from '../lib/';

describe("Google Play API instance test", () => {
  
  it("Test response", (done) => {
    var response = { 
      url: 'https://play.google.com/store/apps/details?id=com.urucas.wifime',
      pkg: 'com.urucas.wifime',
      name: 'Wifime',
      company: 'Urucas',
      stars: '3,0',
      stars_count: '9',
      logo: 'https://lh6.ggpht.com/_b62klCs1JpdxBjt4nN3MOmHfVSaiHOPFKqVdB9Efgybe1FarmZn9Q92qLDdxGMjOg=w300' 
    }
    var api = gplayinfo({_package_:"com.urucas.wifime"});
    api.then((info) => {
      if(info.pkg != "com.urucas.wifime") throw new Error("Error setting package");
      if(info.url != response.url) throw new Error("Error setting package url");
      if(!/\d\,\d/.test(info.stars)) throw new Error("Error setting package stars");
      if(!/\d+/.test(info.stars_count)) throw new Error("Error setting package stars");
      done();
    });
  });
});<commit_msg>fix test<commit_after>// es6 runtime requirements
require('babel/polyfill');
import gplayinfo from '../lib/';

describe("Google Play API instance test", () => {
  
  it("Test response", (done) => {
    var response = { 
      url: 'https://play.google.com/store/apps/details?id=com.urucas.wifime',
      pkg: 'com.urucas.wifime',
      name: 'Wifime',
      company: 'Urucas',
      stars: '3,0',
      stars_count: '9',
      logo: 'https://lh6.ggpht.com/_b62klCs1JpdxBjt4nN3MOmHfVSaiHOPFKqVdB9Efgybe1FarmZn9Q92qLDdxGMjOg=w300' 
    }
    var api = gplayinfo({_package_:"com.urucas.wifime"});
    api.then((info) => {
      if(info.pkg != "com.urucas.wifime") throw new Error("Error setting package");
      if(info.url != response.url) throw new Error("Error setting package url");
      if(!/\d[\,\.]\d/.test(info.stars)) throw new Error("Error setting package stars");
      if(!/\d+/.test(info.stars_count)) throw new Error("Error setting package stars");
      done();
    });
  });
});
{'fraction_non_alphanumeric': 0.18035264483627203, 'fraction_numerical': 0.0181360201511335, 'mean_word_length': 3.336244541484716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '1820080', 'n_tokens_mistral': 751, 'n_tokens_neox': 718, 'n_words': 135}