Updated test cases to account for new damage multipliers

This commit is contained in:
Stefan Zermatten
2022-03-05 17:59:50 +02:00
parent 782f2cdc73
commit 10242b596f

View File

@@ -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 = [