Open darko-mijic opened 8 years ago
Since snapshotting can be disabled we will need a bit more refactoring but in a separate PR.
Good improvement, but let's add a test for this
Would be good to roll this into develop ready for the next release
We need to write a test that cover throwing of this error and tests for rest of errors thrown by es aggregate. I will take care of this next week. I am not available before that.
We have this error now instead of 'undefined is not a function' when snapshot is not registered:
Error: Space.eventSourcing.Aggregate: Snapshot type is undefined. Did you forget to call: Space.eventSourcing.Aggregate.registerSnapshotType()?