mirror of
https://github.com/EDCD/coriolis-data.git
synced 2025-12-09 23:45:34 +00:00
Updates for blueprints
This commit is contained in:
1760
dist/index.js
vendored
1760
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
4517
dist/index.json
vendored
4517
dist/index.json
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -174,6 +174,17 @@ describe('JSON Data', function() {
|
||||
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);
|
||||
|
||||
for (var x in blueprint.features) {
|
||||
var b = blueprint.features[x];
|
||||
var bfs = {};
|
||||
for (var bf in b) {
|
||||
expect(bfs[bf]).toBeFalsy(`Blueprint feature [${bf}] already exists: ${blueprint.name}`);
|
||||
expect(Modifications.modifications[bf]).toBeDefined(`Blueprint feature [${bf}] uknown: ${blueprint.name}`);
|
||||
bfs[bf] = true;
|
||||
}
|
||||
}
|
||||
|
||||
ids[blueprint.id] = true;
|
||||
}
|
||||
});
|
||||
@@ -189,6 +200,7 @@ describe('JSON Data', function() {
|
||||
expect(modification.method).toBeDefined('Modification has no method, ID:' + modification.id);
|
||||
ids[modification.id] = true;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
it('has valid specials', function() {
|
||||
|
||||
Reference in New Issue
Block a user