Fixed parse errors not showing up on calculations
This commit is contained in:
@@ -13,6 +13,10 @@ export default function(){
|
||||
assert.equal(prop('strengthId').modifier, 1);
|
||||
assert.equal(prop('referencesDexId').value, 4);
|
||||
assert.equal(prop('hitDiceId').constitutionMod, 5);
|
||||
assert.equal(
|
||||
prop('parseErrorId').baseValue.errors.length, 1,
|
||||
'Parse errors should be added to calculation errors'
|
||||
);
|
||||
}
|
||||
|
||||
var testProperties = [
|
||||
@@ -74,4 +78,13 @@ var testProperties = [
|
||||
calculation: '4'
|
||||
},
|
||||
}),
|
||||
clean({
|
||||
_id: 'parseErrorId',
|
||||
variableName: 'parseError',
|
||||
type: 'attribute',
|
||||
attributeType: 'ability',
|
||||
baseValue: {
|
||||
calculation: '12 +'
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user