D1879 fixes a subtle issue with the production queue.
This adds a regression test for that.
(sadly over 120 lines long as there is just so much to mock here...)
Differential D1974
Tests for D1879 - Fix limit restriction for training units in ProductionQueue wraitii on Jun 15 2019, 2:52 PM. Authored by
Details
D1879 fixes a subtle issue with the production queue. (sadly over 120 lines long as there is just so much to mock here...) Notice that the tests will fail on SVN. Apply D1879, noticed that tests pass.
Diff Detail
Event TimelineComment Actions Build failure - The Moirai have given mortals hearts that can endure. Linter detected issues: Executing section Source... Executing section JS... | | [NORMAL] ESLintBear (indent): | | Expected indentation of 1 tab but found 8 spaces. |----| | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/simulation/components/tests/test_ProductionQueue.js | |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/simulation/components/tests/test_ProductionQueue.js | 1| 1| Resources = { | 2| |- "BuildSchema": (a, b) => {} | | 2|+ "BuildSchema": (a, b) => {} | 3| 3| }; | 4| 4| | 5| 5| Engine.LoadHelperScript("Player.js"); | | [NORMAL] ESLintBear (indent): | | Expected indentation of 1 tab but found 67 spaces. |----| | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/simulation/components/tests/test_ProductionQueue.js | |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/simulation/components/tests/test_ProductionQueue.js | 120| 120| ["units/athen_cavalry_javelinist_b", "units/iber_support_female_citizen"] | 121| 121| ); | 122| 122| TS_ASSERT_UNEVAL_EQUALS(cmpProductionQueue.GetTechnologiesList(), ["phase_town_athen", | 123| |- "phase_city_athen"] | | 123|+ "phase_city_athen"] | 124| 124| ); | 125| 125| | 126| 126| AddMock(playerEntityID, IID_TechnologyManager, { Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/differential/1720/display/redirect
|