mirror of
https://github.com/EDCD/coriolis-data.git
synced 2025-12-08 23:23:23 +00:00
Add blueprint information
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user