Ticket #4385: patch
File patch, 1.3 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
Resources = { 40 40 "food": "Food", 41 41 "metal": "Metal", 42 42 "stone": "Stone", 43 43 "wood": "Wood" 44 44 }), 45 "GetResource": () => ({}), 45 "GetResource": resource => ({ 46 "aiAnalysisInfluenceGroup": "sparse" 47 }), 46 48 }; 47 49 48 50 var cmp = ConstructComponent(SYSTEM_ENTITY, "GuiInterface"); 49 51 50 52 … … TS_ASSERT_UNEVAL_EQUALS(cmp.GetSimulatio 355 357 "metal": "Metal", 356 358 "stone": "Stone", 357 359 "wood": "Wood", 358 360 }, 359 361 "aiInfluenceGroups": { 360 "food": 0,361 "metal": 0,362 "stone": 0,363 "wood": 0,362 "food": "sparse", 363 "metal": "sparse", 364 "stone": "sparse", 365 "wood": "sparse", 364 366 } 365 367 }, 366 368 }); 367 369 368 370 TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedSimulationState(), { … … TS_ASSERT_UNEVAL_EQUALS(cmp.GetExtendedS 493 495 "metal": "Metal", 494 496 "stone": "Stone", 495 497 "wood": "Wood", 496 498 }, 497 499 "aiInfluenceGroups": { 498 "food": 0,499 "metal": 0,500 "stone": 0,501 "wood": 0,500 "food": "sparse", 501 "metal": "sparse", 502 "stone": "sparse", 503 "wood": "sparse", 502 504 } 503 505 }, 504 506 }); 505 507 506 508