{"size": 559, "ext": "js", "max_stars_repo_path": "test/companies.js", "max_stars_repo_name": "23/node-hubspot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/companies.js", "max_issues_repo_name": "23/node-hubspot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/companies.js", "max_forks_repo_name": "23/node-hubspot", "max_forks_repo_forks_event_min_datetime": "2021-01-29T10:21:35.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-29T10:21:35.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 22.36, "max_line_length": 66, "alphanum_fraction": 0.6547406082}
var chai = require('chai');
var expect = chai.expect;

var Client = require('../index.js');
var client = new Client();
var api_key = 'demo';
client.useKey(api_key);


describe('Companies', function () {

	describe('Get Recently Created', function(){
		it('Should return recently created companies', function (done) {
			client.companies.getRecentlyCreated(function(err, data, res) {
			  if (err) { throw err; }
				expect(res.statusCode).to.equal(200);
				expect(data).to.be.defined;
				expect(data.results).to.be.defined;
				done();
			})
		});
	})

});
