Fixed failing tests

This commit is contained in:
Stefan Zermatten
2022-08-15 09:38:34 +02:00
parent ee0e764294
commit 263f2d8424
5 changed files with 46 additions and 34 deletions

View File

@@ -124,6 +124,7 @@ const expectedMigratedAttribute = {
damage: 3,
value: 17,
constitutionMod: 2,
dirty: true,
}
const exampleAttack = {
@@ -221,6 +222,7 @@ describe('migrateProperty', function() {
prop: newAction,
reversed: true,
});
delete reversedAction.dirty;
assert.deepEqual(action, exampleAction, 'action should not be bashed');
assert.deepEqual(exampleAction, reversedAction, 'operation should be reversible');
});