{"size": 1700, "ext": "js", "max_stars_repo_path": "tests/main.js", "max_stars_repo_name": "anhdt1987vn/node_objectjs", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/main.js", "max_issues_repo_name": "anhdt1987vn/node_objectjs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/main.js", "max_forks_repo_name": "anhdt1987vn/node_objectjs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 62.962962963, "max_line_length": 126, "alphanum_fraction": 0.7488235294}
var expect = require('expect.js');

require('source-map-support').install();

describe('main module', function () {

  it('should be able to load using require', function () {
    var objection = require('../');
    expect(objection.Model).to.equal(require('../lib/model/Model').default);
    expect(objection.ModelBase).to.equal(require('../lib/model/ModelBase').default);
    expect(objection.QueryBuilder).to.equal(require('../lib/queryBuilder/QueryBuilder').default);
    expect(objection.QueryBuilderBase).to.equal(require('../lib/queryBuilder/QueryBuilderBase').default);
    expect(objection.QueryBuilderOperation).to.equal(require('../lib/queryBuilder/operations/QueryBuilderOperation').default);
    expect(objection.RelationExpression).to.equal(require('../lib/queryBuilder/RelationExpression').default);
    expect(objection.ValidationError).to.equal(require('../lib/ValidationError').default);
    expect(objection.Relation).to.equal(require('../lib/relations/Relation').default);
    expect(objection.HasManyRelation).to.equal(require('../lib/relations/hasMany/HasManyRelation').default);
    expect(objection.HasOneRelation).to.equal(require('../lib/relations/hasOne/HasOneRelation').default);
    expect(objection.BelongsToOneRelation).to.equal(require('../lib/relations/belongsToOne/BelongsToOneRelation').default);
    expect(objection.ManyToManyRelation).to.equal(require('../lib/relations/manyToMany/ManyToManyRelation').default);
    expect(objection.transaction).to.equal(require('../lib/transaction').default);
    expect(objection.transaction.start).to.equal(require('../lib/transaction').default.start);
    expect(objection.Promise).to.equal(require('bluebird'));
  });

});
