Skip to content

Commit 23c24e2

Browse files
committed
Update tests
1 parent 9b560c0 commit 23c24e2

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

spec/System/TestDefence_spec.lua

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -459,40 +459,6 @@ describe("TestDefence", function()
459459
end)
460460

461461
describe("Energy shield increased by spell block chance", function()
462-
463-
464-
it("energy shield increased by spell block chance if corresponding flag is present", function()
465-
build.configTab.input.enemyIsBoss = "None"
466-
build.configTab.input.customMods = "\z
467-
You have no intelligence\n\z
468-
100 Energy shield \n\z
469-
energy shield is increased by chance to block spell damage\n\z
470-
50% chance to block spell damage\n\z
471-
"
472-
build.configTab:BuildModList()
473-
runCallback("OnFrame")
474-
475-
assert.are.equals(0, build.calcsTab.calcsOutput.SpellBlockChanceOverCap )
476-
assert.are.equals(50, build.calcsTab.calcsOutput.SpellBlockChance)
477-
assert.are.equals(150, build.calcsTab.calcsOutput.EnergyShield)
478-
end)
479-
480-
it("energy shield increased by spell block chance if corresponding flag is present should be capped to max block", function()
481-
build.configTab.input.enemyIsBoss = "None"
482-
483-
build.configTab.input.customMods = "\z
484-
You have no intelligence\n\z
485-
100 Energy shield \n\z
486-
energy shield is increased by chance to block spell damage\n\z
487-
100% chance to block spell damage\n\z
488-
"
489-
build.configTab:BuildModList()
490-
runCallback("OnFrame")
491-
492-
assert.are.equals(25, build.calcsTab.calcsOutput.SpellBlockChanceOverCap )
493-
assert.are.equals(75, build.calcsTab.calcsOutput.SpellBlockChance)
494-
assert.are.equals(175, build.calcsTab.calcsOutput.EnergyShield)
495-
end)
496462

497463
it("energy shield increased by spell block chance if corresponding 'maximum es' flag is present", function()
498464
build.configTab.input.enemyIsBoss = "None"

0 commit comments

Comments
 (0)