Updated test cases to account for new damage multipliers
This commit is contained in:
@@ -7,9 +7,11 @@ export default function(){
|
|||||||
const computation = buildComputationFromProps(testProperties);
|
const computation = buildComputationFromProps(testProperties);
|
||||||
computeCreatureComputation(computation);
|
computeCreatureComputation(computation);
|
||||||
const scope = id => computation.scope[id];
|
const scope = id => computation.scope[id];
|
||||||
assert.equal(scope('blugeoningMultiplier').value, 1);
|
assert.isTrue(scope('blugeoning').vulnerability);
|
||||||
assert.equal(scope('customDamageMultiplier').value, 0.5);
|
assert.isTrue(scope('customDamage').resistance);
|
||||||
assert.equal(scope('slashingMultiplier').value, 0);
|
assert.isNotTrue(scope('customDamage').immunity);
|
||||||
|
assert.isNotTrue(scope('customDamage').vulnerability);
|
||||||
|
assert.isTrue(scope('slashing').immunity);
|
||||||
}
|
}
|
||||||
|
|
||||||
var testProperties = [
|
var testProperties = [
|
||||||
|
|||||||
Reference in New Issue
Block a user