{"size": 603, "ext": "js", "max_stars_repo_path": "test/Smsglobal.spec.js", "max_stars_repo_name": "smsglobal/smsglobal-node", "max_stars_repo_stars_event_min_datetime": "2020-09-07T00:55:49.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-22T12:43:59.000Z", "max_issues_repo_path": "test/Smsglobal.spec.js", "max_issues_repo_name": "smsglobal/smsglobal-node", "max_issues_repo_issues_event_min_datetime": "2020-10-30T02:02:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-20T02:22:28.000Z", "max_forks_repo_path": "test/Smsglobal.spec.js", "max_forks_repo_name": "smsglobal/smsglobal-node", "max_forks_repo_forks_event_min_datetime": "2020-09-07T00:56:40.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-30T05:42:43.000Z"}
{"max_stars_count": 6, "max_issues_count": 5, "max_forks_count": 2, "avg_line_length": 27.4090909091, "max_line_length": 76, "alphanum_fraction": 0.6169154229}
const { expect } = require('chai');
const errors = require('../lib/errors');

describe('Smsglobal', () => {

  after(() => {
    delete process.env.SMSGLOBAL_API_KEY;
    delete process.env.SMSGLOBAL_API_SECRET;
  });

  it('should fail if no api key or api secret are specified', () => {
    var Smsglobal = require('../lib');
    expect(() => { new Smsglobal();}).to.throw(errors.smsglobal);
  });

  it('should return smsglobal instahce with given key & secret', () => {
    const Smsglobal = require('../lib');
    expect((new Smsglobal('key', 'secret'))).to.be.an.instanceof(Smsglobal);
  });
});

