Skip to content

Commit

Permalink
FIX: odd test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Sep 14, 2023
1 parent ba3c0e1 commit ac203b7
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions spec/System/TestTriggers_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,35 @@ describe("TestTriggers", function()
teardown(function()
-- newBuild() takes care of resetting everything in setup()
end)

it("Trigger Manaforged", function()
build.itemsTab:CreateDisplayItemFromRaw([[+3 Bow
Thicket Bow
Crafted: true
Prefix: {range:0.5}LocalIncreaseSocketedGemLevel1
Prefix: {range:0.5}LocalIncreaseSocketedBowGemLevel2
Prefix: None
Suffix: {range:0.5}LocalIncreasedAttackSpeed2
Suffix: None
Suffix: None
Quality: 20
Sockets: G-G-G-G-G-G
LevelReq: 56
Implicits: 0
+1 to Level of Socketed Gems
+2 to Level of Socketed Bow Gems
9% increased Attack Speed]])
build.itemsTab:AddDisplayItem()
runCallback("OnFrame")

build.skillsTab:PasteSocketGroup("Frenzy 20/0 Default 1\nManaforged Arrows 20/0 Default 1\n")
runCallback("OnFrame")

build.skillsTab:PasteSocketGroup("Rain of Arrows 20/0 Default 1\n")
runCallback("OnFrame")

assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
end)

it("Trigger Law of the Wilds", function()
build.itemsTab:CreateDisplayItemFromRaw([[Law of the Wilds
Expand Down Expand Up @@ -1315,35 +1344,6 @@ describe("TestTriggers", function()
assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
end)

it("Trigger Manaforged", function()
build.itemsTab:CreateDisplayItemFromRaw([[+3 Bow
Thicket Bow
Crafted: true
Prefix: {range:0.5}LocalIncreaseSocketedGemLevel1
Prefix: {range:0.5}LocalIncreaseSocketedBowGemLevel2
Prefix: None
Suffix: {range:0.5}LocalIncreasedAttackSpeed2
Suffix: None
Suffix: None
Quality: 20
Sockets: G-G-G-G-G-G
LevelReq: 56
Implicits: 0
+1 to Level of Socketed Gems
+2 to Level of Socketed Bow Gems
9% increased Attack Speed]])
build.itemsTab:AddDisplayItem()
runCallback("OnFrame")

build.skillsTab:PasteSocketGroup("Frenzy 20/0 Default 1\nManaforged Arrows 20/0 Default 1\n")
runCallback("OnFrame")

build.skillsTab:PasteSocketGroup("Rain of Arrows 20/0 Default 1\n")
runCallback("OnFrame")

assert.True(build.calcsTab.mainOutput.SkillTriggerRate ~= nil)
end)

it("Trigger Doom Blast", function()
build.skillsTab:PasteSocketGroup("Impending Doom 20/0 Default 1\nDespair 20/0 Default 1\n")
runCallback("OnFrame")
Expand Down

0 comments on commit ac203b7

Please sign in to comment.