Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
More exported data
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenedith committed Feb 17, 2016
1 parent 1e81805 commit dd7f543
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports = {
eventsResolver: require('./lib/resolver/eventsResolver'),
vehicleResolver: require('./lib/resolver/vehicleResolver')
},
enum: {
eventEnum: require('./lib/enum/eventEnum'),
variantEnum: require('./lib/enum/variantEnum')
},
model: {
/**
* the searchCarRequest model and builder.
Expand Down Expand Up @@ -48,7 +52,11 @@ module.exports = {
* @type vehicleReportsCollection
* @static
*/
vehicleReportsCollection: require('./lib/model/response/vehicleReportsCollection')
vehicleReportsCollection: require('./lib/model/response/vehicleReportsCollection'),

changedRegistrationLocationEvent: require('./lib/model/response/event/changedRegistrationLocationEvent'),
inspectionEvent: require('./lib/model/response/event/inspectionEvent'),
location: require('./lib/model/response/vehicle/location')
},

/**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vehicle-history-model",
"version": "0.10.0",
"version": "0.11.0",
"description": "Vehicle history model.",
"main": "./index.js",
"dependencies": {
Expand Down Expand Up @@ -45,6 +45,6 @@
"node": ">=5.6.0"
},
"readmeFilename": "README.md",
"_id": "vehicle-history-model@0.10.0",
"_from": "vehicle-history-model@^0.10.0"
"_id": "vehicle-history-model@0.11.0",
"_from": "vehicle-history-model@^0.11.0"
}
35 changes: 35 additions & 0 deletions test/indexTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ describe('index test', function () {
done();
});

it('should export eventEnum function', function (done) {

var eventEnum = index.enum.eventEnum;
should.exist(eventEnum);
done();
});

it('should export variantEnum function', function (done) {

var variantEnum = index.enum.variantEnum;
should.exist(variantEnum);
done();
});

it('should export SearchCarRequest model', function (done) {

var searchCarRequest = index.model.searchCarRequest;
Expand Down Expand Up @@ -83,6 +97,27 @@ describe('index test', function () {
done();
});

it('should export changedRegistrationLocationEvent function', function (done) {

var changedRegistrationLocationEvent = index.model.changedRegistrationLocationEvent;
should.exist(changedRegistrationLocationEvent);
done();
});

it('should export inspectionEvent function', function (done) {

var inspectionEvent = index.model.inspectionEvent;
should.exist(inspectionEvent);
done();
});

it('should export location function', function (done) {

var location = index.model.location;
should.exist(location);
done();
});

it('should export resolver', function (done) {

var resolver = index.resolver.resolver;
Expand Down

0 comments on commit dd7f543

Please sign in to comment.