Skip to content

Conversation

darko-mijic
Copy link
Member

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()?

@darko-mijic
Copy link
Member Author

Since snapshotting can be disabled we will need a bit more refactoring but in a separate PR.

@darko-mijic darko-mijic assigned darko-mijic and unassigned rhyslbw Mar 15, 2016
@darko-mijic darko-mijic removed the WIP label Mar 15, 2016
@darko-mijic darko-mijic assigned rhyslbw and unassigned darko-mijic Mar 15, 2016
@rhyslbw
Copy link
Member

rhyslbw commented Mar 15, 2016

Good improvement, but let's add a test for this

@rhyslbw rhyslbw assigned darko-mijic and unassigned rhyslbw Mar 15, 2016
@rhyslbw rhyslbw added the WIP label Mar 15, 2016
@rhyslbw
Copy link
Member

rhyslbw commented Apr 10, 2016

Would be good to roll this into develop ready for the next release

@darko-mijic
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants