core tests
This commit is contained in:
@@ -10,6 +10,7 @@ class TestValueObject implements ValueObject<{ name: string; value: number }> {
|
||||
}
|
||||
|
||||
equals(other: ValueObject<{ name: string; value: number }>): boolean {
|
||||
if (!other) return false;
|
||||
return (
|
||||
this.props.name === other.props.name && this.props.value === other.props.value
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user