Skip to content

Commit 4c1dd80

Browse files
moopedcyface
authored andcommitted
Mock calculateCritAdjustment.
1 parent 402bfc1 commit 4c1dd80

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

module/__mocks__/foundry.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,14 @@ global.game = new Game()
212212
global.game.user = { _id: 1 }
213213
global.getDCCSkillTableMock = jest.fn((skillName) => { return null }).mockName('game.dcc.getSkillTable')
214214
global.processSpellCheckMock = jest.fn((actor, spellData) => { }).mockName('game.dcc.processSpellCheck')
215+
global.calculateCritAdjustment = jest.fn((original, adjusted) => { return 0 }).mockName('game.dcc.DiceChain.calculateCritAdjustment')
215216
global.game.dcc = {
216217
DCCRoll,
217218
getSkillTable: global.getDCCSkillTableMock,
218-
processSpellCheck: global.processSpellCheckMock
219+
processSpellCheck: global.processSpellCheckMock,
220+
DiceChain: {
221+
calculateCritAdjustment: global.calculateCritAdjustment
222+
}
219223
}
220224

221225
/**

0 commit comments

Comments
 (0)