Fixed computation bug for compile level calcs
This commit is contained in:
@@ -14,7 +14,7 @@ export default function(){
|
||||
assert.equal(prop.usesLeft, 2);
|
||||
|
||||
const rolled = computation.propsById['rolledDescriptionId'];
|
||||
assert.equal(rolled.summary.value, 'test roll gets compiled {1d4 + 4} properly');
|
||||
assert.equal(rolled.summary.value, 'test roll gets compiled 1d4 + 4 properly');
|
||||
|
||||
const itemConsumed = prop.resources.itemsConsumed[0];
|
||||
assert.equal(itemConsumed.quantity.value, 3);
|
||||
|
||||
@@ -17,6 +17,10 @@ export default function(){
|
||||
prop('parseErrorId').baseValue.errors.length, 1,
|
||||
'Parse errors should be added to calculation errors'
|
||||
);
|
||||
assert.equal(
|
||||
prop('parseErrorId').baseValue.value, null,
|
||||
'Parse errors should null the value'
|
||||
);
|
||||
}
|
||||
|
||||
var testProperties = [
|
||||
|
||||
Reference in New Issue
Block a user