Add blueprint information

This commit is contained in:
Cmdr McDonald
2016-11-22 14:47:06 +00:00
parent cd62eb46c8
commit 737ae38110
6 changed files with 842 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
var Modules = require('../modules');
var Ships = require('../ships');
var Modifications = require('../modifications');
describe('JSON Data', function() {
@@ -160,4 +161,15 @@ describe('JSON Data', function() {
}
});
it('has valid blueprints', function() {
var ids = {};
for (var k in Modifications.blueprints) {
const blueprint = Modifications.blueprints[k];
expect(ids[blueprint.id]).toBeFalsy('ID already exists: ' + blueprint.id);
expect(blueprint.name).toBeDefined('Blueprint has no name, ID:' + blueprint.id);
ids[blueprint.idid] = true;
}
});
});