Closed janjoerke closed 6 months ago
The shouldBeImmutable() test method in VersionTest has also some problems connected to assertNotSame.
I don't think this library is maintained any more. You may want to check out https://github.com/asarkar/jsemver.
Hello Jan! Sorry for the delay and thank you for your contribution!
When executing the increment method of MetadataVersion, the original and the returned MetadataVersion share the same idents array, as no new array is created for the new MetadataVersion object.
The test case does not reveal this error, because it only verifies that the original MetadataVersion and the returned MetadataVersion do not reference the same object.