{"size": 1263, "ext": "js", "max_stars_repo_path": "test/functional/enrichment.test.js", "max_stars_repo_name": "use-dhain-se/dhain.se", "max_stars_repo_stars_event_min_datetime": "2020-05-14T06:19:22.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-14T06:19:22.000Z", "max_issues_repo_path": "test/functional/enrichment.test.js", "max_issues_repo_name": "socialclue/proof.ai", "max_issues_repo_issues_event_min_datetime": "2020-07-17T04:23:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T22:20:18.000Z", "max_forks_repo_path": "test/functional/enrichment.test.js", "max_forks_repo_name": "socialclue/proof.ai", "max_forks_repo_forks_event_min_datetime": "2019-06-02T11:25:55.000Z", "max_forks_repo_forks_event_max_datetime": "2019-06-02T11:25:55.000Z"}
{"max_stars_count": 1, "max_issues_count": 7, "max_forks_count": 1, "avg_line_length": 38.2727272727, "max_line_length": 160, "alphanum_fraction": 0.6777513856}
/**
 * Test picasaWeb and Gravatar
 * @type {"assert".internal | ((value: any, message?: string) => void)}
 */
let chai = require('chai');
let expect = chai.expect;;
const enrichment = require('../../api/enrichment/services/Enrichment');


describe('Should Return Email Data', function() {
  describe('#emailEnrichmentfromPicasaWeb()', function() {
    it('should return data when the value is passedt', function() {
      let email = "kirti.prakash1990@gmail.com";
        enrichment.picasaWeb(email).then(function (data) {
        expect(data.username).to.equal('Kirti Prakash');
        expect(data.profile_pic).to.equal('https://lh3.googleusercontent.com/-AMztD5XJtwA/AAAAAAAAAAI/AAAAAAAAAAA/1bEdSnwxrMo/s64-c/115988417621641284488.jpg');
      });
    });
  });
});

describe('Should Return Email Data From Gravatar', function() {
  describe('#emailEnrichmentfromGravatar()', function() {
    it('should return data when value is passed', function() {
      let email = "kirti.prakash1990@gmail.com";
      enrichment.gravatr(email).then(function (data) {
        expect(data.username).to.equal('kirtiprakash1990');
        expect(data.profile_pic).to.equal('https://secure.gravatar.com/avatar/0358cfa11ad87cf602668978c4f4140f');
      });
    });
  });
});
